Android Studio 加载 .so库出现couldn't find "*.so"

E/AndroidRuntime: FATAL EXCEPTION: pool-12-thread-1
Process: com.mykj.qupingfang, PID: 29357
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.mykj.qupingfang-1/base.apk”],nativeLibraryDirectories=[/data/app/com.mykj.qupingfang-1/lib/arm64, /data/app/com.mykj.qupingfang-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn’t find “*.so”

如果出现这种错误 在该项目的build.gradle中添加

sourceSets {
    main() {
        jniLibs.srcDirs = ['libs']
    }
}

你可能感兴趣的:(bug整理)