java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/项目包名-

报错:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/项目包名-2/base.apk", zip file "/data/app/项目包名-2/split_lib_dependencies_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_0_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_1_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_2_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_3_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_4_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_5_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_6_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_7_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_8_apk.apk", zip file "/data/app/项目包名-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/项目包名-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libhdtk_socket.so"

解决方案:

1.根据网络给的解决方案: 参考:https://blog.csdn.net/q9104422999/article/details/70650748

2.若是解决不了,请检查自己的项目中,是否有别的加载SO包的依赖项目,有则要注意,所有项目中加载的so包(个数和名称)必须一致,即,依赖项目A中加载了armeabi 和 armeabi-v7a这两个SO包, 其他依赖项目也必须一样。

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file

3.再次遇到了相同的问题,也排除了上面的解决方案,最终发现是与网上下载的rtsp sdk起冲突,移除这个SDK后就解决问题了.  疑惑的是rtsp sdk中没有jnilibs这个文件夹的.

你可能感兴趣的:(Android报错)