高德地图java.lang.UnsatisfiedLinkError: dlopen failed:has text relocations
2017-04-24 17:04
162 查看
最近客户反馈,项目中的高德地图导航闪退,我测试了下,的确是闪退,查找error:java.lang.UnsatisfiedLinkError: dlopen failed:has text relocations,本来以为是之前遇到的java.lang.UnsatisfiedLinkError:,这个在高德论坛中都有解决,也遇到过,就按之前的方法查找了一下,发现上次加了ping++这个第三方,这个里面的so库有很多平台,但是我的高德地图导航版本是16.8月份的版本,只可以说只能保留armeabi(这一点,真是恶心,别人家各大平台都放出来,这个大公司竟然没有,哎),删掉ping++其他的,满心欢喜的编译一下,额,竟然没解决,然后就开始啦我的谷歌百度之路。
解决:
1.随着今天国产手机ROM都逐渐升级到了Android6.0系统,我相信肯定会有很多开发者会遇到此类问题,今天我就分享一个解决办法,其实非常简单,这个libiconv.so(xx.so)文件使用了较低版本的SDK,当时我的targetSdkVersion为23,所以我就降低到了22,就不会再报错了,而且能够正常使用了。 这是libiconv.so文件的解决办法,如果你用的那个xx.so文件降低到22还报错的话,建议继续降低版本尝试。
2.高德地图中的科大讯飞语音,so库我替换成了最新版。
2种方法我都试了,都是可以的,我选择了第二种,毕竟6.0渐渐的成为了主流,肯定是要处理动态权限这一块的。
解决:
1.随着今天国产手机ROM都逐渐升级到了Android6.0系统,我相信肯定会有很多开发者会遇到此类问题,今天我就分享一个解决办法,其实非常简单,这个libiconv.so(xx.so)文件使用了较低版本的SDK,当时我的targetSdkVersion为23,所以我就降低到了22,就不会再报错了,而且能够正常使用了。 这是libiconv.so文件的解决办法,如果你用的那个xx.so文件降低到22还报错的话,建议继续降低版本尝试。
2.高德地图中的科大讯飞语音,so库我替换成了最新版。
2种方法我都试了,都是可以的,我选择了第二种,毕竟6.0渐渐的成为了主流,肯定是要处理动态权限这一块的。
相关文章推荐
- java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/***.so: has text relocations
- dlopen failed: "*.so" has unexpected e_machine
- JNI异常: java.lang.UnsatisfiedLinkError: dlopen failed: ***.so: has text relocations
- 关于Android使用JNI报错 java.lang.UnsatisfiedLinkError: dlopen failed: 和xxx.so: has text relocations错误问题的解决
- java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.gkzxhn.prision-2/lib/arm/libosp.so: has
- Android 8.0 x86 ffmpeg 提示 dlopen failed: "xxxxxx==/lib/x86/xxx.so" has text relocations
- has been modified since the precompiled header ,please rebuild precompiled header
- eclipse中执行程序时报错'A JNI error has occurred,please check your installation and try again'
- [Phonegap+Sencha Touch] 移动开发38 sencha 2.3.2+ 在 安卓2.3上使用报错 - has no method 'bind'
- 执行请求的操作时遇到错误: ORA-28001: the password has expired 28001. 00000 - "the password has expired" *Cause
- java.lang.IllegalStateException: getWriter() has already been called for this response问题解决
- spring boot报错:this application has no explicit mapping for /error...
- Fast-settling synchronous-PWM-DAC filter has almost no ripple
- 【工具】——SonarLint analysis failed:'other' has different root
- 连接MySQL数据库时出现The dirver has not received any packets from the server
- 初始化namenode失败,java.lang.IllegalArgumentException: URI has an authority component
- Porsche Piwis Tester II “No VCI has been detected”,how to do?
- Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
- 【Android异常】The specified child already has a parent. You must call removeView() on the child's paren
- flask_route错误:AttributeError: 'function' object has no attribute 'route'