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

错误问题 缺少或无法读取 librsjni.so 等

2018-10-22 10:40:59.390 26530-26530 : dlopen(/system/lib/librsjni.so) failed becuase of library “/system/lib/librsjni.so” needed or dlopened by “/system/lib/libnativeloader.so” is not accessible for the namespace “classloader-namespace”
2018-10-22 10:40:59.391 26530-26530 : library “/system/lib/librsjni.so” ("/system/lib/librsjni.so") needed or dlopened by “/system/lib/libnativeloader.so” is not accessible for the namespace: [name=“classloader-namespace”, ld_library_paths="", default_library_paths="/data/app/com.xy51.puh-1/lib/arm:/data/app/com.xy51.puh-1/base.apk!/lib/armeabi", permitted_paths="/data:/mnt/expand:/data/data/com.xy51.puh"]
2018-10-22 10:40:59.391 26530-26530/ : dlopen(/system/lib/librsjni.so) failed2 bacuase of library “/system/lib/librsjni.so” needed or dlopened by “/system/lib/libnativeloader.so” is not accessible for the namespace “classloader-namespace”
2018-10-22 10:40:59.391 26530-26530/ E/RenderScript_jni: Error loading RS jni library: java.lang.UnsatisfiedLinkError: dlopen failed: library “/system/lib/librsjni.so” needed or dlopened by “/system/lib/libnativeloader.so” is not accessible for the namespace “classloader-namespace”

解决方式 在 android -> defaultConfig ->加入
 ndk {
       //选择要添加的对应cpu类型的.so库。
         abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a','x86', 'x86_64', 'mips', 'mips64'
         // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'

}
        即可

你可能感兴趣的:(android)