-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile/cmd/gomobile: init subcommand doesn't suppport -androidapi flag #58661
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
Comments
When I look at https://developer.android.com/ndk/downloads/revision_history, it looks pretty clear that the version of the NDK you are using (24) only supports API level 19 and above:
So what you are seeing looks like expected behavior. Suggest you select a different android API level with the proper flag, e.g. https://cs.opensource.google/go/x/mobile/+/master:cmd/gomobile/build.go;l=63;drc=43a0384520996c8376bfb8637390f12b44773e65 |
But the $ ANDROID_HOME=~/Android/Sdk/ ANDROID_NDK_HOME=~/Android/Sdk/ndk/25.2.9519653/ gomobile init -androidapi 25 -openal ~/cpp/openal-soft/ Gives the output:
So what should I do exactly? |
I see. This does seem like a problem. @hyangah do you have any insights here? Perhaps |
(CC @golang/android) |
Possibly https://cs.opensource.google/go/x/mobile/+/master:internal/binres/binres.go;drc=8578da9835fd365e78a6e63048c103b27a53a82c;l=253 is to blame. Build succeeds:
Inspecting the built |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I installed golang.org/x/mobile and latest Android SDK and NDK via Android Studio. Then I downloaded the openal-soft source code. After this I ran:
What did you expect to see?
I expected the command to build OpenAL for Android so it could be used with
gomobile build
and
gomobile install
.What did you see instead?
The text was updated successfully, but these errors were encountered: