dlopen failed: library...库加载失败

--------- beginning of crash

E/AndroidRuntime: FATAL EXCEPTION: context-work-thread

Process: xx.xx.xx, PID: 5214

java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib/liblibrary.so" needed or dlopened by "/system/lib/libnativeloader.so" is not accessible for the namespace "classloader-namespace"

at java.lang.Runtime.loadLibrary0(Runtime.java:1016)


第一种: 

             网上方法:在system/etc/public.libraries.txt中添加该so的全名 ,即liblibrary.so

第二种:

             自己方法:加载失败,除了让它加载出来,其实还可以直接不调用它,例如我这个项目开发不需要用到这个库,所以开发的时候都要在配置文件里把值置为false(这个方法具体根据自己项目自己尝试解决,只是提供思路)

你可能感兴趣的:(dlopen failed: library...库加载失败)