Generating so library with c++ under Android Studio using Gradle
When we put the jni folder under projects and compile it using command line tool ndk-build, we will get libs & obj folders like this:
|–jni |–libs |—-armeabi-v7a |–obj
But under Android Studio develop environment, android studio can’t find the so files under libs folder.
We can do it by using following folder structure under Android Studio:
|—app |——jni |——libs |——obj |——src |———androidTest |———main
We can use this folder structure to compile JNI.