Git Product home page Git Product logo

Comments (9)

TestPlanB avatar TestPlanB commented on July 27, 2024

目前只支持用System.loadLibrary去加载哟!System.load还没有适配

from dyso.

TestPlanB avatar TestPlanB commented on July 27, 2024

"__cxa_finalize" 请先确认这个函数符号,是否在其他的so库中,而其他的so库没有放在指定的动态加载目录

from dyso.

liwei49699 avatar liwei49699 commented on July 27, 2024

"__cxa_finalize" 请先确认这个函数符号,是否在其他的so库中,而其他的so库没有放在指定的动态加载目录

image
image
我是直接跑得demo啊 走到那个循环就报异常了

from dyso.

TestPlanB avatar TestPlanB commented on July 27, 2024

demo 是没有包含下载so库这一动作的,需要我们手动模拟把so文件放到自定义目录,具体步骤可见readme中掘金文档

from dyso.

liwei49699 avatar liwei49699 commented on July 27, 2024

demo里面的两个so库 我已经导入了 剩下的那几个库 我不知道是怎么回事

from dyso.

Kino521 avatar Kino521 commented on July 27, 2024

用的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.

TestPlanB avatar TestPlanB commented on July 27, 2024

直接跑demo肯定是跑不起来的,我在项目代码有注释,我们demo只是想要成功执行需要把相应的so放到对应的下载目录下(模拟下载过程),可以看readme里面的掘金文章,有详细步骤

from dyso.

TestPlanB avatar TestPlanB commented on July 27, 2024

nativecpp2 依赖nativecpp ,demo运行可以看项目,还有一步是把特定的so放到自定义的文件夹下,模拟下载的过程

from dyso.

SkyHots avatar SkyHots commented on July 27, 2024

用的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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.