Comments (9)
目前只支持用System.loadLibrary去加载哟!System.load还没有适配
from dyso.
"__cxa_finalize" 请先确认这个函数符号,是否在其他的so库中,而其他的so库没有放在指定的动态加载目录
from dyso.
"__cxa_finalize" 请先确认这个函数符号,是否在其他的so库中,而其他的so库没有放在指定的动态加载目录
from dyso.
demo 是没有包含下载so库这一动作的,需要我们手动模拟把so文件放到自定义目录,具体步骤可见readme中掘金文档
from dyso.
demo里面的两个so库 我已经导入了 剩下的那几个库 我不知道是怎么回事
from dyso.
用的android 版本13的手机
java.lang.UnsatisfiedLinkError: dlopen failed: library "/storage/emulated/0/Android/data/com.example.nativecpp/files/libnativecpp.so" needed or dlopened by "/apex/com.android.art/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace"
at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
at java.lang.Runtime.loadLibrary0(Runtime.java:998)
at java.lang.System.loadLibrary(System.java:1661)
at com.example.lib_sillyboy.DynamicSo.loadStaticSo(DynamicSo.java:30)
at com.example.nativecpp.MainActivity.onCreate(MainActivity.java:33)
from dyso.
直接跑demo肯定是跑不起来的,我在项目代码有注释,我们demo只是想要成功执行需要把相应的so放到对应的下载目录下(模拟下载过程),可以看readme里面的掘金文章,有详细步骤
from dyso.
nativecpp2 依赖nativecpp ,demo运行可以看项目,还有一步是把特定的so放到自定义的文件夹下,模拟下载的过程
from dyso.
用的android 版本13的手机 java.lang.UnsatisfiedLinkError: dlopen failed: library "/storage/emulated/0/Android/data/com.example.nativecpp/files/libnativecpp.so" needed or dlopened by "/apex/com.android.art/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace" at java.lang.Runtime.loadLibrary0(Runtime.java:1077) at java.lang.Runtime.loadLibrary0(Runtime.java:998) at java.lang.System.loadLibrary(System.java:1661) at com.example.lib_sillyboy.DynamicSo.loadStaticSo(DynamicSo.java:30) at com.example.nativecpp.MainActivity.onCreate(MainActivity.java:33)
解决了吗兄弟,我也遇到了这个报错
from dyso.
Related Issues (10)
- 关于删除apk内so的操作建议 HOT 1
- 大佬,想请教一下加载so文件的一些问题 HOT 1
- java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib64/libdl.so" needed or dlopened by "/system/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace" HOT 1
- java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.exemple.myapplication/files/dynamic_so/libtest.so" has unexpected e_version: 65725 HOT 2
- 找不到so HOT 1
- has invalid shdr offset/size HOT 1
- 请教多个so的加载问题 HOT 1
- java.lang.UnsatisfiedLinkError: dlopen failed: library "libvtn.so" not found HOT 2
- 第三方库如何使用呢,怎么在aar或jar中的类加注解
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dyso.