织梦CMS - 轻松建站从此开始!

湖南快乐十分全天计划:罗索实验室

当前位置: 主页 > 嵌入式开发 > Android >

Android NDK: dlopen failed: cannot locate symbol “__gnu_thu

落鹤生 发布于 2015-09-16 10:32 点击:次 
Android NDK: dlopen failed: cannot locate symbol “__gnu_thumb1_case_uqi”

湖南快乐十分玩法 www.7mhm0.cn My NDK game works well in Debug mode, but crashes in release with the following log on Nexus 7:

Issue:

E dalvikvm: dlopen("/data/app-lib/com.js.pathoflight-1/libPathOfLight.so") failed: dlopen failed: cannot locate symbol "__gnu_thumb1_case_uqi" referenced by
"libPathOfLight.so"... 
W dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/js  /pathoflight/JSNativeActivity; 
W dalvikvm: Class init failed in newInstance call (Lcom/js/pathoflight/JSNativeActivity;) 
D AndroidRuntime: Shutting down VM 
W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41b01700) 
E AndroidRuntime: FATAL EXCEPTION: main 
E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol   "__gnu_thumb1_case_uqi" referenced by "libPathOfLight.so"... 
E AndroidRuntime:   at java.lang.Runtime.loadLibrary(Runtime.java:361) 
E AndroidRuntime:   at java.lang.System.loadLibrary(System.java:525) 
E AndroidRuntime:   at com.js.pathoflight.JSNativeActivity.<clinit>(JSNativeActivity.java:59) 
E AndroidRuntime:   at java.lang.Class.newInstanceImpl(Native Method)   
E AndroidRuntime:   at java.lang.Class.newInstance(Class.java:1130) 
E AndroidRuntime:   at android.app.Instrumentation.newActivity(Instrumentation.java:1061) 
E AndroidRuntime:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128) 
E AndroidRuntime:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) 
E AndroidRuntime:   at android.app.ActivityThread.access$600(ActivityThread.java:141)
E AndroidRuntime:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E AndroidRuntime:   at android.os.Handler.dispatchMessage(Handler.java:99) 
E AndroidRuntime:   at android.os.Looper.loop(Looper.java:137) 
E AndroidRuntime:   at android.app.ActivityThread.main(ActivityThread.java:5103) 
E AndroidRuntime:   at java.lang.reflect.Method.invokeNative(Native Method) 
E AndroidRuntime:   at java.lang.reflect.Method.invoke(Method.java:525) 
E AndroidRuntime:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 
E AndroidRuntime:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
E AndroidRuntime:   at dalvik.system.NativeStart.main(Native Method) 
W ActivityManager:   Force finishing activity com.js.pathoflight/.JSNativeActivity

Solution:

While removing different parts of the code I found that the issue was in a 3rd party library I used.
I changed its usage from "gnustl_static" version (.a) to "gnustl_shared" (.so) one and the problem disappeared!

 

(deko)
本站文章除注明转载外,均为本站原创或编译欢迎任何形式的转载,但请务必注明出处,尊重他人劳动,同学习共成长。转载请注明:文章转载自:罗索实验室 [//www1.rosoo.net/a/201509/17384.html]
本文出处:stackoverflow 作者:deko 原文
顶一下
(0)
0%
踩一下
(1)
100%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
将本文分享到微信
推荐内容

  • 端午小长假 宜春接游270.6万人次 旅游综合收入12.73亿元 2018-12-01
  • 落实党委的政治责任和领导责任,开创我国高等教育发展新局面 2018-07-25
  • 人民日报召开习近平新闻思想理论研讨会 2018-07-25
  • 跟着抖音去旅行,五一小长假,你的专属攻略请查收! 2018-07-24
  • 把课堂上的重点难点录下来 教学类短视频平台前景几何 2018-07-24
  • 蔡英文将二访巴拉圭?台媒:主要是想过境美国! 2018-07-23
  • 绷紧纪律弦,坚决对诱惑说“不” 2018-07-23
  • 李纪恒--内蒙古频道--人民网 2018-07-22
  • 端午假期全国迎客8910万人次 传统文化活动受青睐 2018-07-21
  • [调皮]“谈判技巧”始终摆脱不了“被迫谈判”的尴尬! 2018-07-21
  • 郭树清谈非法集资风险:收益率超6%需谨慎 2018-07-20
  • 优质金融资源“注”入云南 2018-07-20
  • 金灿荣:特朗普稳住阵脚后或对华更强硬 2018-07-19
  • 风雨兼程,与党和人民同行 2018-07-19
  • 234| 497| 552| 892| 712| 329| 283| 966| 567| 10|