Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile Android native library with Android Studio?

I am a new user of android studio and I am developing application based on native library(JNI) and eclipse is provide builder facilities for NDK-build. so any functionality available in android studio to build NDK

like image 746
urveshpatel50 Avatar asked Oct 03 '22 15:10

urveshpatel50


2 Answers

NDK integration is very basic, limited, and not documented (per the New Build System page) at the time of this writing. There a couple of examples in the samples at the bottom of that page that illustrate how this can be done. You can also check the Gradle Plugin User Guide periodically to see if any additional documentation is available.

like image 138
Mark Avatar answered Oct 07 '22 20:10

Mark


Android Studio runs ndk-build automatically if you have a jni directory in your project root. I describe the minimal setup you need in my answer to a similar question.

like image 29
Cypress Frankenfeld Avatar answered Oct 07 '22 20:10

Cypress Frankenfeld