Use the example
-
build go source to dynamic library
cd go ./build_android_on_mac.sh # You must edit the shell, and set ANDROID_NDK_HOME to your ndk. The project use ndk version is 21.0.6113669, I just test macOS.
-
Run the app in Android Studio
This project demonstrates how to compile the go source code into a dynamic library for Android and use it in Android.
C