#How to get the folder where JNI native libraries are compiled at?
1 messages · Page 1 of 1 (latest)
<@&987246964494204979> 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 at?
In Android Studio, the JNI native libraries are typically compiled in the "build" directory of your project. To find the exact location of the compiled native libraries, you can follow these steps:
- Build your project by clicking on the "Build" menu and selecting "Make Project" or pressing Ctrl + F9.
- After the build process is completed, go to the "Project" view in Android Studio by clicking on the "Project" tab on the left side of the IDE.
- Navigate to the "app/build/intermediates/cmake/debug/obj" directory within your project's directory structure.
- Inside this directory, you should find subdirectories corresponding to each ABI (e.g., armeabi-v7a, arm64-v8a, x86, x86_64) supported by your project.
- The compiled native libraries (.so files) for each ABI will be located within their respective directories.
Alternatively, you can also check the "CMakeLists.txt" file in your project to see if a custom output directory is specified for storing the compiled native libraries. Look for any lines that set CMAKE_LIBRARY_OUTPUT_DIRECTORY or similar variables.
By following these steps, you should be able to locate the folder where JNI native libraries are compiled at in your Android Studio project.
i need to find it using code