Java.lang.unsatisfiedlinkerror:dalvik.system.pathclassloader[dexpathlist[[zip file "/ data/app/Project Package name -2/base.apk ", zip file"/data/app/Project package name -2/split_lib_dependencies_apk.apk ", zip file"/data/app/Project package name -2/ split_lib_slice_0_apk.apk ", zip file"/data/app/Project package name -2/split_lib_slice_1_apk.apk ", zip file/data/app/Project package name -2/split_ lib_slice_2_apk.apk ", zip file"/data/app/Project package name -2/split_lib_slice_3_apk.apk ", zip file/data/app/Project package name -2/split_lib_ slice_4_apk.apk ", zip file"/data/app/Project package name -2/split_lib_slice_5_apk.apk ", zip file/data/app/Project package name -2/split_lib_slice_ 6_apk.apk ", zip file"/data/app/Project package name -2/split_lib_slice_7_apk.apk ", zip file/data/app/Project package name -2/split_lib_slice_8_ apk.apk ", zip file"/data/app/Project package name -2/split_lib_slice_9_apk.apk "],nativelibrarydirectories=[/data/app/Project package name -2/lib/ Arm,/vendor/lib,/system/lib]]] couldn ' t find "libhdtk_socket.so"
second method: 1.jar packages and so files are placed in the Libs directory.
2. Add the following code in the Build.gradle file android{sourcesets {main {jnilibs.srcdirs = [' Libs ']}}} If not, see if the Build.gradle file exists NDK NDK supported so library architecture, if the following code is the android {ndk {//Set supported so library architecture Abifil
Ters ' Armeabi ', ' x86 ', ' armeabi-v7a ', ' x86_64 ', ' arm64-v8a '}} Remove ' x86 ', ' armeabi-v7a ', ' x86_64 ' these schemas and then compile and run
Removed as: Android {ndk {//Set supported so Library architecture abifilters ' Armeabi ', ' arm64-v8a '}}}