集成Ease UI启动闪退
集成EaseUI后,启动就闪退,直接用AS新建项目,导入EaseUI Module后,进行配置
在Application里初始化调用的代码
EMOptions options = new EMOptions(); // 默认添加好友时,是不需要验证的,改成需要验证 options.setAcceptInvitationAlways(false);
EaseUI.getInstance().init(this, options);
manifest文件都做了相关配置了
最后启动就闪退
AS 日志
10-01 21:56:51.540 20834-20834/com.lin.demo.imhx I/libthemeutils: Theme: libthemeutil.so load success
10-01 21:56:51.550 20834-20834/com.lin.demo.imhx D/EaseUI: process app name : com.lin.demo.imhx
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx E/SMACK-Voe: enter JNI_OnLoad
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx D/SMACK-Voe: TORNADO007 WEBRTC_EASEMOB not DEFINED
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: LOAD EICE TORNADO007 WEBRTC_EASEMOB not DEFINED
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: register_eice_jni() +++++++++++++++++++
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: register native ...
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: register native OK
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: ----------------------begin of config----------------------
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: key: dns_time value: 1480014000000
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: ----------------------end of config----------------------
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: addConnectionListener
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: addConnectionListener
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: addConnectionListener
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: >>>>>>eice_init
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: >>>>>>eice_init complete
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:613]: addConnectionListener
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:619]: registerContactListener
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: restBaseUrl()
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: EMDNSManager::getCurrentHost: type: 2
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: EMSessionManager::checkDNS()
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: valid_time: 1480014000000
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: EMSessionManager::parseDnsServer:
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: current time: 1475330211621
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: valid time: 1480014000000
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: saveConfigs()
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: write to config file: {
"dns_time":"1480014000000"
}
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: ranomOffer
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: imServer before random:
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 182.92.23.113
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 60.205.109.58
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: randomServers
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: randomServers
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: randomServers
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: imServer after random:
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 60.205.109.58
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 182.92.23.113
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: passed_time: -4683788378
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: current time: 1475330211622
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: validBefore: 1480014000000
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: DNS config expired: 0
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: checkDNS finished
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: EMDNSManager::getHost: type: 2
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: current host: domain: 182.92.159.193 port: 80
10-01 21:56:51.610 20834-20876/com.lin.demo.imhx A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 20876 (Thread-4691)
10-01 21:56:51.640 20834-20834/com.lin.demo.imhx W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
----------------------------------------------------------------------------------------------------
我使用的小米手机,闪退的时候捕获的日志如下
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/leo/leo:5.1.1/LMY47V/6.9.27:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 18278, tid: 18319, name: Thread-4641 >>> com.lin.demo.imhx <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
x0 0000000000000000 x1 000000000000478f x2 0000000000000006 x3 0000007f700b6b00
x4 ffffffffffffffff x5 0000000000000005 x6 0000000000000001 x7 0000000000000020
x8 0000000000000083 x9 0000000000000000 x10 0000000000000001 x11 0000000000000001
x12 0000000000000001 x13 0000000000000000 x14 0000007f7f648558 x15 00000000ffffffff
x16 0000007f650f9738 x17 0000000000000001 x18 0000000000000000 x19 0000007f700b6b00
x20 0000007f64b4eb70 x21 0000007f7f64b000 x22 0000000000000000 x23 0000000000000006
x24 0000007f64b4e4e0 x25 0000007f64b4e4f0 x26 0000007f64b4e4e8 x27 0000007f64b4e6c0
x28 0000007f64b4e4d8 x29 0000007f64b4dee0 x30 0000007f7f5a3b00
sp 0000007f64b4dee0 pc 0000007f7f5e5a48 pstate 0000000060000000
backtrace:
#00 pc 000000000005da48 /system/lib64/libc.so (tgkill+8)
#01 pc 000000000001bafc /system/lib64/libc.so (pthread_kill+160)
#02 pc 000000000001d05c /system/lib64/libc.so (raise+28)
#03 pc 00000000000169bc /system/lib64/libc.so (abort+60)
#04 pc 0000000000126ff8 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (_ZN9__gnu_cxx27__verbose_terminate_handlerEv+348)
#05 pc 00000000000d6e1c /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (_ZN10__cxxabiv111__terminateEPFvvE+8)
#06 pc 00000000000d6e88 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (_ZSt9terminatev+12)
#07 pc 00000000001261e4 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (__cxa_throw+136)
#08 pc 000000000011cf90 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so
#09 pc 0000000000120a60 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so
#10 pc 000000000005e110 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so
#11 pc 00000000000c882c /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (Java_com_hyphenate_chat_adapter_EMAChatConfig_nativegetBaseUrl+56)
#12 pc 0000000000404458 /data/dalvik-cache/arm64/data@app@com.lin.demo.imhx-1@base.apk@classes.dex
在Application里初始化调用的代码
EMOptions options = new EMOptions(); // 默认添加好友时,是不需要验证的,改成需要验证 options.setAcceptInvitationAlways(false);
EaseUI.getInstance().init(this, options);
manifest文件都做了相关配置了
最后启动就闪退
AS 日志
10-01 21:56:51.540 20834-20834/com.lin.demo.imhx I/libthemeutils: Theme: libthemeutil.so load success
10-01 21:56:51.550 20834-20834/com.lin.demo.imhx D/EaseUI: process app name : com.lin.demo.imhx
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx E/SMACK-Voe: enter JNI_OnLoad
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx D/SMACK-Voe: TORNADO007 WEBRTC_EASEMOB not DEFINED
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: LOAD EICE TORNADO007 WEBRTC_EASEMOB not DEFINED
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: register_eice_jni() +++++++++++++++++++
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: register native ...
10-01 21:56:51.580 20834-20834/com.lin.demo.imhx I/eice-jni: register native OK
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: ----------------------begin of config----------------------
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: key: dns_time value: 1480014000000
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: ----------------------end of config----------------------
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: addConnectionListener
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: addConnectionListener
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: addConnectionListener
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: >>>>>>eice_init
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:612]: >>>>>>eice_init complete
10-01 21:56:51.600 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:613]: addConnectionListener
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:619]: registerContactListener
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: restBaseUrl()
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: EMDNSManager::getCurrentHost: type: 2
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: EMSessionManager::checkDNS()
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: valid_time: 1480014000000
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: EMSessionManager::parseDnsServer:
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: current time: 1475330211621
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: valid time: 1480014000000
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:621]: saveConfigs()
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: write to config file: {
"dns_time":"1480014000000"
}
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: ranomOffer
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: imServer before random:
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 182.92.23.113
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 60.205.109.58
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: randomServers
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: randomServers
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: randomServers
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: imServer after random:
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 60.205.109.58
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: 182.92.23.113
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: passed_time: -4683788378
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: current time: 1475330211622
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: validBefore: 1480014000000
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: DNS config expired: 0
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: checkDNS finished
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: EMDNSManager::getHost: type: 2
10-01 21:56:51.610 20834-20872/com.lin.demo.imhx D/ONE SDK: [2016/10/1 21:56:51:622]: current host: domain: 182.92.159.193 port: 80
10-01 21:56:51.610 20834-20876/com.lin.demo.imhx A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 20876 (Thread-4691)
10-01 21:56:51.640 20834-20834/com.lin.demo.imhx W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
----------------------------------------------------------------------------------------------------
我使用的小米手机,闪退的时候捕获的日志如下
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/leo/leo:5.1.1/LMY47V/6.9.27:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 18278, tid: 18319, name: Thread-4641 >>> com.lin.demo.imhx <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
x0 0000000000000000 x1 000000000000478f x2 0000000000000006 x3 0000007f700b6b00
x4 ffffffffffffffff x5 0000000000000005 x6 0000000000000001 x7 0000000000000020
x8 0000000000000083 x9 0000000000000000 x10 0000000000000001 x11 0000000000000001
x12 0000000000000001 x13 0000000000000000 x14 0000007f7f648558 x15 00000000ffffffff
x16 0000007f650f9738 x17 0000000000000001 x18 0000000000000000 x19 0000007f700b6b00
x20 0000007f64b4eb70 x21 0000007f7f64b000 x22 0000000000000000 x23 0000000000000006
x24 0000007f64b4e4e0 x25 0000007f64b4e4f0 x26 0000007f64b4e4e8 x27 0000007f64b4e6c0
x28 0000007f64b4e4d8 x29 0000007f64b4dee0 x30 0000007f7f5a3b00
sp 0000007f64b4dee0 pc 0000007f7f5e5a48 pstate 0000000060000000
backtrace:
#00 pc 000000000005da48 /system/lib64/libc.so (tgkill+8)
#01 pc 000000000001bafc /system/lib64/libc.so (pthread_kill+160)
#02 pc 000000000001d05c /system/lib64/libc.so (raise+28)
#03 pc 00000000000169bc /system/lib64/libc.so (abort+60)
#04 pc 0000000000126ff8 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (_ZN9__gnu_cxx27__verbose_terminate_handlerEv+348)
#05 pc 00000000000d6e1c /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (_ZN10__cxxabiv111__terminateEPFvvE+8)
#06 pc 00000000000d6e88 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (_ZSt9terminatev+12)
#07 pc 00000000001261e4 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (__cxa_throw+136)
#08 pc 000000000011cf90 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so
#09 pc 0000000000120a60 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so
#10 pc 000000000005e110 /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so
#11 pc 00000000000c882c /data/app/com.lin.demo.imhx-1/lib/arm64/libhyphenate.so (Java_com_hyphenate_chat_adapter_EMAChatConfig_nativegetBaseUrl+56)
#12 pc 0000000000404458 /data/dalvik-cache/arm64/data@app@com.lin.demo.imhx-1@base.apk@classes.dex
没有找到相关结果
已邀请:
1 个回复
Wxin