What is jni / libs folder?
I noticed that when adding native project support in Eclipse it creates a jni / libs / folder. What is this folder and how is it used as I cannot find it in the NDK documentation.
In the NDK docs
a copy of your previously created shared library will be copied to $ PROJECT / obj / local, and another one will be copied and deleted in $ PROJECT / LIES / (ABI).
I notice that when a do ndk-build
, this dir is cleared and multiple libraries are put into it. However, it is usually not the case that the libraries in $ Project / jni / libs correspond to $ Project / libs. It also seems that when I install the application, the jni / libs is not referenced.
Is jni / libs just a temporary folder used by ndk-build? Is it documented anywhere, or is it a consequence of using Eclipse for native support?
source to share
jni / libs - folder where shared library files are generated from C / C ++ sources. The native code will compile and depends on the value you set in the application.mk file for the parameter
APP_ABI: = <all | x86 | armv7a | armeabi-v7 | mips>
the corresponding libs.so files are created and placed in the jni / libs folder. These lib files are inserted into your final apk file and specified by your application as needed. This is not a temporary folder and the files from this folder are included in your latest apk file.
source to share