注册

安卓账号登陆在华为Mate20上崩溃

其他设备没有问题,但是在Mate20上发生了崩溃,崩溃在这个函数Java_com_hyphenate_chat_adapter_EMAChatClient_native_1login,崩溃日志如下
 
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: java_array == null
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]     in call to GetArrayLength
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]     from void com.hyphenate.chat.adapter.EMAChatClient.native_login(java.lang.String, java.lang.String, boolean, boolean, com.hyphenate.chat.adapter.EMAError)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542] "pool-3-thread-1" prio=5 tid=15 Runnable
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   | group="main" sCount=0 dsCount=0 flags=0 obj=0x13c04ce8 self=0xb4147c00
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   | sysTid=17417 nice=0 cgrp=default sched=0/0 handle=0xb877f970
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   | state=R schedstat=( 14867187 0 1 ) utm=1 stm=0 core=5 HZ=100
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   | stack=0xb867c000-0xb867e000 stackSize=1042KB
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   | held mutexes= "mutator lock"(shared held)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #00 pc 002e7713  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+134)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #01 pc 0038d135  /system/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream>&, bool, BacktraceMap*, bool) const+212)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #02 pc 00389713  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream>&, bool, BacktraceMap*, bool) const+34)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #03 pc 0023a433  /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+722)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #04 pc 002a24e5  /system/lib/libart.so (art::JNI::GetArrayLength(_JNIEnv*, _jarray*)+656)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #05 pc 0008acbd  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #06 pc 0008d501  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #07 pc 0008d5bb  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #08 pc 0005865d  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #09 pc 0006e131  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #10 pc 0006e7e9  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #11 pc 000376b7  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #12 pc 00036197  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (???)
2019-03-21 11:26:34.175 17239-17417/com.oasis.thewar A/om.oasis.thewa: java_vm_ext.cc:542]   native: #13 pc 0008eb09  /data/app/com.oasis.thewar-1kKXqFVQnYdzHXnZc4oOTA==/lib/arm/libhyphenate.so (Java_com_hyphenate_chat_adapter_EMAChatClient_native_1login+176) 
已邀请:

lizg - ……

您好,目前3.5.3版本的sdk已经适配了android9.0的系统,建议您把sdk升级到3.5.3版本。按照sdk的升级文档在清单文件中配置下
<application> <uses-library android:name="org.apache.http.legacy" android:required="false"/> </application>
http://docs-im.easemob.com/im/android/sdk/releasenote#%E7%89%88%E6%9C%AC_v353_2019-01-18------3.5.3sdk升级文档。

要回复问题请先登录注册