Giter Site home page Giter Site logo

Comments (4)

LinJZong avatar LinJZong commented on May 4, 2024

找不到的so是你们app的so吗,DoraemonKit中是没使用so的,理论上来说不会有问题。麻烦上一下具体的堆栈信息。

from dokit.

Dovar66 avatar Dovar66 commented on May 4, 2024

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.xxx.xxx-cpqjAYRqnUsvap2ShRxuvA==/base.apk"],nativeLibraryDirectories=[/data/app/com.xxx.xxx-cpqjAYRqnUsvap2ShRxuvA==/lib/arm64, /system/fake-libs64, /data/app/com.xxx.xxx-cpqjAYRqnUsvap2ShRxuvA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libhyphenate.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
at java.lang.System.loadLibrary(System.java:1669)
at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source:25)

是我项目中原有的第三方so,只要在build.gradle文件中引入了DoraemonKit就会导致找不到第三方so库,上面这个是找不到环信的报错

我是这样引入DoraemonKit的:
debugImplementation 'com.didichuxing.doraemonkit:doraemonkit:1.1.1'
releaseImplementation 'com.didichuxing.doraemonkit:doraemonkit-no-op:1.1.1'

from dokit.

Dovar66 avatar Dovar66 commented on May 4, 2024

问题我解决了,但是有个疑问,确定DoraemonKit中没引用到so吗?因为我的项目中jniLibs下只保留了armeabi目录,引入Doraemonkit之后运行在arm64-v8a设备上提示找不到so文件,所以应该是Doraemonkit中jniLibs下保留了多个架构目录,那就说明Doraemonkit有引用so啊。

from dokit.

LinJZong avatar LinJZong commented on May 4, 2024

你好,刚看了下,DoraemonKit是有引用了一个检测是否root的sdk,com.scottyab:rootbeer-lib,里面包含了所有架构的so。建议gradle配置ndk{ abiFilter "armeabi"}的方式来指定app保留的架构

from dokit.

Related Issues (20)

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.