dalvik.system.PathClassLoader[DexPathList[[zip file

android studio 报如下错误
java.lang.UnsatisfiedLinkError
dalvik.system.PathClassLoader[DexPathList[[zip file “/system/framework/org.simalliance.openmobileapi.jar”, zip file “/data/app/com.bjsslt.iblueandroid-1/base.apk”],nativeLibraryDirectories=[/data/app/com.bjsslt.iblueandroid-1/lib/arm64, /data/app/com.bjsslt.iblueandroid-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn’t find “liblinphone-armeabi.so”

解决办法:

将jinLibs或者libs下的arm64-v8a,arm-64等删除,留下armeabi和armeabi_v7a

ndk {
abiFilters “armeabi”, “armeabi-v7a”
}

如下加入:
defaultConfig {
applicationId “com..
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName “1.0”
multiDexEnabled true
ndk {
abiFilters “armeabi”, “armeabi-v7a”
}
}
加入后 如果出现

NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin.

则在项目根目录的gradle.properties文件中添加:

android.useDeprecatedNdk=true
就行

你可能感兴趣的:(android)