Skip to content

This project demonstrates how to compile the go source code into a dynamic library for Android and use it in Android.

Notifications You must be signed in to change notification settings

coinsGo/BuildGoForAndroid

 
 

Repository files navigation

Build go library in android

Use the example

  1. 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.
  2. Run the app in Android Studio

About

This project demonstrates how to compile the go source code into a dynamic library for Android and use it in Android.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 48.7%
  • Kotlin 19.7%
  • CMake 17.4%
  • Shell 9.1%
  • Java 2.9%
  • Go 2.2%