Skip to content

x/mobile: flag -androidapi is being ignored #71364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SearchingForSoulutions opened this issue Jan 21, 2025 · 3 comments
Closed

x/mobile: flag -androidapi is being ignored #71364

SearchingForSoulutions opened this issue Jan 21, 2025 · 3 comments
Labels
BugReport Issues describing a possible bug in the Go implementation. mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@SearchingForSoulutions
Copy link

SearchingForSoulutions commented Jan 21, 2025

I'm implementing a simple project in Golang which compiles, but when i try to install the .apk on the smartphone simulator in android studio it return this error:
Error code: 'INSTALL_FAILED_DEPRECATED_SDK_VERSION', message='INSTALL_FAILED_DEPRECATED_SDK_VERSION: App package must target at least SDK version 24, but found 16'

The command i'm using:
gomobile build -target android -androidapi 24 -o myapp.apk

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jan 21, 2025
@gopherbot gopherbot added this to the Unreleased milestone Jan 21, 2025
@SearchingForSoulutions
Copy link
Author

SearchingForSoulutions commented Jan 21, 2025

OS: win11 24H2
go version go1.23.4 windows/amd64
gomobile version: gomobile version unknown: binary is out of date, re-install it

already reinstalled with:
go install golang.org/x/mobile/cmd/gomobile@latest
same answer

Android SDK and NDK installed today along with android studio, so are the latest.
Those are compatible with android 16 and android API 24 to 35.

@gabyhelp
Copy link

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Jan 21, 2025
@dr2chase dr2chase added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 21, 2025
@dr2chase
Copy link
Contributor

@hyangah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation. mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants