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

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/xxx-1/base.apk"],nativeLibraryDirectories=[/data/app/xxxx-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "xxx.so"


解决这个问题:

在build.gradle中加入:

android{
 
  
    abi {
    enable true
    reset()
    include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi'
    universalApk false
        }
}


或者:

android {


    splits {
        abi {
            enable true
            reset()
            include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi'
            universalApk false
        }
    }
}

你可能感兴趣的:(#,添加Module,常见错误)