Home >Backend Development >Golang >I'm having trouble using the Android NDK and the error is as follows
php Editor Xiaoxin encountered a problem when using Android NDK. The error is as follows. This problem may be often encountered during the development process, but it is not that easy to solve. When developing using Android NDK, we often need to call C or C code. Various errors may occur during the compilation and linking process, which need to be carefully checked and resolved. When we encounter problems, we can solve them by viewing error messages, checking code logic, comparing documents, etc. Hopefully, by reviewing the error message and analyzing the root cause of the problem, you can find a solution to the problem and make the development process smoother.
I'm using Fyne for packaging, but I'm having trouble packaging to Android. I tried two methods and the error is as follows:
Found no ARM compiler in NDK (tried). Make sure your NDK version is >= r19c. Use
sdkmanager --update to update
and
no Android NDK
found in $ANDROID_HOME/ndk-bundle or $ANDROID_NDK_HOME
I have tried before:
fyne package -os android -appID com.example.myapp
-> Android NDK not found in $ANDROID_HOME/ndk-bundle nor $ANDROID_NDK_HOME
ANDROID_NDK_HOME=/Users/ahmetaffanebcioglu/Library/Android/sdk/ndk fyne package -os android -appID com.example.myapp
-> arm compiler not found in NDK (tried ). Make sure your NDK version is >= r19c. Update using sdkmanager --update
For those who are looking for an answer to this problem, a solution has been found.
ANDROID_NDK_HOME=/Users/username/Library/Android/sdk/ndk/Contents/NDK fyne package -os android -appID com.example.myapp
But if the NDK is in a different place, I don't know.
The above is the detailed content of I'm having trouble using the Android NDK and the error is as follows. For more information, please follow other related articles on the PHP Chinese website!