#How to get the folder where JNI native libraries are compiled at?

1 messages ยท Page 1 of 1 (latest)

junior wrenBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

ompiled?

You can find the folder where JNI native libraries are compiled by looking at the CMakeLists.txt file in your Android Studio project. In the CMakeLists.txt file, you should see a line that specifies the output directory for the compiled native libraries. It will look something like this:

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI})

This line tells CMake to output the compiled native libraries to the "jniLibs" folder inside your project's source directory, with a subfolder named after the target ABI (e.g. armeabi-v7a, arm64-v8a, x86, etc.).

To find where your JNI native libraries are compiled at, you can navigate to this output directory in your project's file system. You should see the compiled .so files for each target ABI in their respective subfolders within the "jniLibs" directory.

pine knot
#

That's out of javas control. Java default will search library paths. The working directory is one of those paths