UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "
最近用AndroidStudio运行第三方的程序时,报错如下:
UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/???-QUG_RcfyVOxgMrAQFCb10g==/base.apk"],nativeLibraryDirectories=[/data/app/???-QUG_RcfyVOxgMrAQFCb10g==/lib/arm64, /system/lib64, /system/product/lib64, /hw_product/lib64, /system/product/lib64]]] couldn't find "libBarcode.so"
解决方法:
在build.gradle中加入:
android { splits { abi { enable true reset() include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi' universalApk false } } }