美文网首页
java.lang.UnsatisfiedLinkError:

java.lang.UnsatisfiedLinkError:

作者: YY17 | 来源:发表于2018-06-19 12:01 被阅读0次

    测试配置部自己配置了编译环境,用SVN上的代码编译出来的APK,出现了这样一个错误

    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/com.xxx.xxx-1/lib/arm64/libmwnet.so"...
    at java.lang.Runtime.loadLibrary(Runtime.java:364)
    at java.lang.System.loadLibrary(System.java:526)
    at net.video.trimmer.service.VideoTrimmingService.onCreate(VideoTrimmingService.java:29)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2585)
    at android.app.ActivityThread.access1800(ActivityThread.java:139) at android.app.ActivityThreadH.handleMessage(ActivityThread.java:1292)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5086)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    at dalvik.system.NativeStart.main(Native Method)

    排查原则

    一切保持一致

    排查过程

    Android Studio , SDK, Gradle , NDK, CMake, SVN Code ...
    当然,可以首要排查NDK工具

    原因及解决

    NDK工具版本不一致,配置部NDK_17.1 VS 开发NDK_16.1

    相关文章

      网友评论

          本文标题:java.lang.UnsatisfiedLinkError:

          本文链接:https://www.haomeiwen.com/subject/dzraeftx.html