注册

libhyphenate.so 崩溃

我用 环信sdk 版本号是3.5.3  下面这个崩溃怎么解决?
#00 pc 0001d796 /system/lib/libc.so (abort+57) [armeabi-v7a]
#01 pc 0014c03d /data/app/com.eblog-2rnDFnkTIq_9pvb--5hZpw==/lib/arm/libhyphenate.so (__gnu_cxx::__verbose_terminate_handler()+220) [armeabi-v7a]
#02 pc 0011b6c3 /data/app/com.eblog-2rnDFnkTIq_9pvb--5hZpw==/lib/arm/libhyphenate.so (__cxxabiv1::__terminate(void (*)())+2) [armeabi-v7a]
#03 pc 0011b6f3 /data/app/com.eblog-2rnDFnkTIq_9pvb--5hZpw==/lib/arm/libhyphenate.so (std::terminate()+10) [armeabi-v7a]
#04 pc 0014327b /data/app/com.eblog-2rnDFnkTIq_9pvb--5hZpw==/lib/arm/libhyphenate.so [armeabi-v7a]
#05 pc 00065aa7 /system/lib/libc.so (__pthread_start(void*)+22) [armeabi-v7a]
#06 pc 0001e9ad /system/lib/libc.so (__start_thread+32) [armeabi-v7a]
已邀请:

lizg - ……

您好 您这边还有其他详细的堆栈信息吗?你的jar和so是同一个版本的吗?替换同一个版本的jar和So试试
这些信息是在bugly上显示: 我拿不到原始信息
手机型号: 华为 P8MAX 系统版本: Android 6.0,level 23 cpu 架构: arm64-v8a
 
1 #00 pc 000432cc /system/lib/libc.so (tgkill+12) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]2 #01 pc 00041e35 /system/lib/libc.so (pthread_kill+32) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]
3 #02 pc 0001bb53 /system/lib/libc.so (raise+10) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]
4 #03 pc 00018db1 /system/lib/libc.so (__libc_android_abort+34) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]
5 #04 pc 0001696c /system/lib/libc.so (abort+4) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]
6 #05 pc 0014c03d /data/app/com.eblog-2/lib/arm/libhyphenate.so (_ZN9__gnu_cxx27__verbose_terminate_handlerEv+220) [armeabi-v7a::84d8c580b25721c5414969b5eab6b83b]
7 #06 pc 0011b6c3 /data/app/com.eblog-2/lib/arm/libhyphenate.so (_ZN10__cxxabiv111__terminateEPFvvE+2) [armeabi-v7a::84d8c580b25721c5414969b5eab6b83b]
8 #07 pc 0011b6f3 /data/app/com.eblog-2/lib/arm/libhyphenate.so (_ZSt9terminatev+10) [armeabi-v7a::84d8c580b25721c5414969b5eab6b83b]
9 #08 pc 0014327b /data/app/com.eblog-2/lib/arm/libhyphenate.so [armeabi-v7a::84d8c580b25721c5414969b5eab6b83b]
10 #09 pc 00041737 /system/lib/libc.so (_ZL15__pthread_startPv+30) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]
11 #10 pc 00019433 /system/lib/libc.so (__start_thread+6) [armeabi-v7a::bc0f36efdbaeb749b7c5a0e1520490ff]
 
还有一些跟踪日志:
205-20 10:10:46.595 19633 20194 W System.err: java.lang.NumberFormatException: Invalid int: "rs"
305-20 10:10:46.608 19633 20194 W System.err: at java.lang.Integer.invalidInt(Integer.java:138)
405-20 10:10:46.610 19633 20194 W System.err: at java.lang.Integer.parse(Integer.java:410)
505-20 10:10:46.610 19633 20194 W System.err: at java.lang.Integer.parseInt(Integer.java:367)
605-20 10:10:46.610 19633 20194 W System.err: at java.lang.Integer.parseInt(Integer.java:334)
705-20 10:10:46.610 19633 20194 W System.err: at com.hyphenate.cloud.HttpClientConfig.getDefaultHttpClient(Unknown Source)
805-20 10:10:46.610 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI._httpExecute(Unknown Source)
905-20 10:10:46.610 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI.httpExecute(Unknown Source)
1005-20 10:10:46.622 19633 20194 W System.err: java.net.UnknownHostException: Unable to resolve host "rs.easemob.com": No address associated with hostname
1105-20 10:10:46.626 19633 20194 W System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:470)
1205-20 10:10:46.626 19633 20194 W System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
1305-20 10:10:46.626 19633 20194 W System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215)
1405-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142)
1505-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
1605-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
1705-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)
1805-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:596)
1905-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:517)
2005-20 10:10:46.635 19633 20194 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:495)
2105-20 10:10:46.635 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI._httpExecute(Unknown Source)
2205-20 10:10:46.635 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI.httpExecute(Unknown Source)
2305-20 10:10:46.635 19633 20194 W System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
2405-20 10:10:46.635 19633 20194 W System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
2505-20 10:10:46.635 19633 20194 W System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
2605-20 10:10:46.635 19633 20194 W System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:451)
2705-20 10:10:46.635 19633 20194 W System.err: ... 11 more
2805-20 10:10:46.636 19633 20194 W System.err: java.lang.NumberFormatException: Invalid int: "rs1"
2905-20 10:10:46.636 19633 20194 W System.err: at java.lang.Integer.invalidInt(Integer.java:138)
3005-20 10:10:46.636 19633 20194 W System.err: at java.lang.Integer.parse(Integer.java:410)
3105-20 10:10:46.637 19633 20194 W System.err: at java.lang.Integer.parseInt(Integer.java:367)
3205-20 10:10:46.637 19633 20194 W System.err: at java.lang.Integer.parseInt(Integer.java:334)
3305-20 10:10:46.637 19633 20194 W System.err: at com.hyphenate.cloud.HttpClientConfig.getDefaultHttpClient(Unknown Source)
3405-20 10:10:46.637 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI._httpExecute(Unknown Source)
3505-20 10:10:46.637 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI.httpExecute(Unknown Source)
3605-20 10:10:46.641 19633 20194 W System.err: java.net.UnknownHostException: Unable to resolve host "rs1.easemob.com": No address associated with hostname
3705-20 10:10:46.641 19633 20194 W System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:470)
3805-20 10:10:46.641 19633 20194 W System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
3905-20 10:10:46.641 19633 20194 W System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215)
4005-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142)
4105-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
4205-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
4305-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)
4405-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:596)
4505-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:517)
4605-20 10:10:46.642 19633 20194 W System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:495)
4705-20 10:10:46.642 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI._httpExecute(Unknown Source)
4805-20 10:10:46.642 19633 20194 W System.err: at com.hyphenate.chat.adapter.EMARHttpAPI.httpExecute(Unknown Source)
4905-20 10:10:46.642 19633 20194 W System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
5005-20 10:10:46.642 19633 20194 W System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
5105-20 10:10:46.642 19633 20194 W System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
5205-20 10:10:46.642 19633 20194 W System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:451)
5305-20 10:10:46.642 19633 20194 W System.err: ... 11 more

lizg - ……

您好,参考下面的文档连接,在清单配件中配置下。
http://docs-im.easemob.com/im/android/sdk/import#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB

要回复问题请先登录注册