集成IM之后DEBUG环境下可以登录,但RELEASE打包之后LOGIN就报错

com.easemob.g.c: Can't initialize the configured debugger!
已邀请:

HIBOR-ZA

赞同来自:

-keep class com.easemob.* {*;}
-keep class com.easemob.chat.** {*;}
-keep class org.jivesoftware.** {*;}
-keep class org.apache.** {*;}
#另外,demo中发送表情的时候使用到反射,需要keep SmileUtils,注意前面的包名,
#不要SmileUtils复制到自己的项目下keep的时候还是写的demo里的包名
-keep class com.easemob.chatuidemo.utils.SmileUtils {*;}

#2.0.9后加入语音通话功能,如需使用此功能的api,加入以下keep
-keep class net.java.sip.** {*;}
-keep class org.webrtc.voiceengine.** {*;}
-keep class org.bitlet.** {*;}
-keep class org.slf4j.** {*;}
-keep class ch.imvs.** {*;}
 
 
 
噢,加错了,用这个就好了

HIBOR-ZA

赞同来自:

EMChat.getInstance().setEnv(EMEnvMode.EMProductMode);
 
设置为产品环境

HIBOR-ZA

赞同来自:

急啊,有大神在吗

HIBOR-ZA

赞同来自:

D/rosterstorage(23119): roster storage load entries, roster items size:0
D/EMChatManager(23119): do start service: context:apphi.bookface.android.Bookfac
eApplication@41e0bec8
D/a       (23119): enter connectSync
D/a       (23119): connection manager:connect
D/a       (23119): before connect
D/sxmppcon(23119): try to connect to host : 182.92.26.56 port : 443
D/sxmppcon(23119): open a new socket : Socket[address=/182.92.26.56,port=443,loc
alPort=60552]
W/System.err(23119): java.lang.IllegalArgumentException: Can't initialize the co
nfigured debugger!
W/System.err(23119):    at org.a.a.h.q(Unknown Source)
W/System.err(23119):    at org.a.a.at.F(Unknown Source)
W/System.err(23119):    at org.a.a.at.E(Unknown Source)
W/System.err(23119):    at org.a.a.at.a(Unknown Source)
W/System.err(23119):    at org.a.a.at.C(Unknown Source)
W/System.err(23119):    at com.easemob.chat.b.a.d(Unknown Source)
W/System.err(23119):    at com.easemob.chat.b.a.a(Unknown Source)
W/System.err(23119):    at com.easemob.chat.db.b(Unknown Source)
W/System.err(23119):    at com.easemob.chat.db.a(Unknown Source)
W/System.err(23119):    at com.easemob.chat.dd.run(Unknown Source)
W/System.err(23119): Caused by: java.lang.NoSuchMethodException: <init> [class o
rg.a.a.h, class java.io.Writer, class java.io.Reader]
W/System.err(23119):    at java.lang.Class.getConstructorOrMethod(Class.java:460
)
W/System.err(23119):    at java.lang.Class.getConstructor(Class.java:431)
W/System.err(23119):    ... 10 more
D/a       (23119): connection.connect() failed: Can't initialize the configured
debugger!
D/a       (23119): connectSync with error = Can't initialize the configured debu

HIBOR-ZA

赞同来自:

这是混淆的设定
 
 
-keep class android.net.http.SslError
-keep class android.webkit.**{*;}
-keep class cn.sharesdk.**{*;}
-keep class m.framework.**{*;}
-keep class cn.smssdk.**{*;}
-keep class com.mob.**{*;}

要回复问题请先登录注册

知识价值的认可,源自您的赞赏

扫描二维码,你的支付将由imGeek代收后转给对方

×