wrong description
During NDK development, after compiling and running, an error java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file..........couldn't find "xxx.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:984)
at java.lang.System.loadLibrary(System.java:1562)
Solutions (three possible solutions)
First check
1, the inside of the CMakeLists.txt file
Whether the xxx file name and suffix in add_library(xxx SHARED xxx.c) are consistent with the file
2. buildType{ in the module
ndk{ abiFilters "armeabi-v7a" } }
See if the cpu architecture configuration here supports the cpu architecture of the current debugging model
3. Check
Whether the following configuration items are configured in android {}, delete them packagingOptions { exclude 'lib/armeabi-v7a/libxxx.so' }
4. If the above operations still fail, try to delete the build folder in the app, and then rebuild the project to try