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

com.easemob.g.c: Can't initialize the configured debugger!
共5个回复

HIBOR-ZA

2015-10-03 21:09

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

HIBOR-ZA

2015-10-03 21:12

急啊,有大神在吗

HIBOR-ZA

2015-10-03 21:20

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

2015-10-03 21:30

这是混淆的设定     -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.**{*;}

HIBOR-ZA

2015-10-03 21:41

-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.** {*;}       噢,加错了,用这个就好了
点击此处继续提问与开发者们互动

申请试用

提交后工作人员会尽快与您联系进行功能演示
技术咨询已转移到管理后台,请先登录

即时通讯云使用者请在应用详情页面咨询
客服云使用者请进入管理员模式咨询

×

400电话

商务咨询

技术咨询

免费试用