I am a learner of golang ,trying to use golang to develop android When I want to package into APK, I encounter the following problems
I'm following the official guide to install gomobile. OS:Win10 go version go1.20.2 windows/amd64
I have installed Android Studio and SDK Tools(NDK)
I have set patch
ANDROID_HOME // C:\Users\AI007\AppData\Local\Android\Sdk
ANDROID_NDK_HOME // C:\Users\AI007\AppData\Local\Android\Sdk\ndk\25.2.9519653
When I want to package into APK, I encounter the following problems
input command
C:\Users\AI007>gomobile bind -target=android goapp
show
gomobile: ANDROID_NDK_HOME specifies C:\Users\AI007\AppData\Local\Android\Sdk\ndk\25.2.9519653, which is unusable: unsupported API version 16 (not in 19..33)
Google has found a lot of methods, how to solve this problem, it has troubled me for several days, thank you