Android.so files are not extracted in / data / data / <package> / lib
I am developing my own Android application and use the open source library with the .so file created. In the face of strange behavior. For the first few times, the application worked perfectly, while the library was loading. But now he cannot find the library and gives -
java.lang.UnsatisfiedLinkError: Failed to load: findLibrary null null
. Below are a few observations: 1. When I extract the .apk file, the library (.so) is present in the "lib / armeabi" folder. 2. but when I try to search the library (.so) in the extracted device path from
/ data / data // Library /, it is not. Any suggestions as to why this strange behavior occurs and why the .so file is not extracted from the /data/data/com.ibm.homeScreen/lib/ folder.
Thanks in advance!
If you use eclipse, check the build path settings: Right-click on your project β Properties β JavaBuildPath β Order and Export (there is a tab) and check if the libra is checked (checkbox) for export. There is also the option to set the path to the source library. You can find this option in the Library β Android Private Libraries β EDIT Button tab on the right
For an eclipse project, just put all of your * .so files in the armeabi or armeabi-v7a folder and put the folder inside / libs in your project. Compile, * .so files will be automatically imported into / data / data // lib
For android studio, the above approach did not work for me. instead, I should put the armeabi and armeabi-v7a folders in / jniLibs instead of / libs. Please note that I am using Gradle 0.10. + Although not sure if it works with older Gradle.

You can find more information about this problem here: Why do some Android phones make our application throw java.lang.UnsatisfiedLinkError? https://code.google.com/p/android/issues/detail?id=59420
The stackoverflow link also contains some code with a workaround in the last answer (currently).