-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/mobile: gomobile +6d0d39b incompatible with NDK 20.0.x #35030
Comments
For those who are facing the incompatibility problem, here is a temporary hack to use NDK r19.2.x :
gomobile init should work with this hack!! |
Not sure about that one, sorry. We are running |
Still happens today:
@archanpaul workaround from above helps though. |
any updates? |
Reproduced for go v 1.14 |
|
You don't need to install r19 ndk: just run Thanks |
add the following to your export ANDROID_HOME=$HOME/Android/Sdk
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.3.6528147
export PATH=$PATH:$GOPATH/bin:$ANDROID_HOME/platform-tools/ As I can see, you guys just have to specify the ndk version clearly. |
fyi when using ndk 24+ i got it working by creating symbolic links armv7a-linux-androideabi32 -> armv7a-linux-androideabi16 same for i686, gomobile is looking for androideabi16 but this isn't present anymore in the latest ndk's, you can link whatever versions you want, it compiles to .aar (using gomobile bind) but when typing this I haven't thoroughly checked if everything is working. edit: even if you just want android/arm64 the gomobile toolchain still dies if it can't find these compilers |
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?
gomobile clean
gomobile init
What did you expect to see?
Should not show following error!!
What did you see instead?
Android NDK version
Android NDK r20.0.x
The text was updated successfully, but these errors were encountered: