调用 EaseUI.getInstance().init(this, options); 初始化报错 删掉就好了。

001.png 002.png
已邀请:

geri_yang

赞同来自:

和工单重复

guichun68 - 80后IT男

赞同来自:

我的也是,请问怎么解决的,根本不清楚为什么,init这句话直接game over!

baoshu

赞同来自:

sdk的导入问题,检查看下sdk

微乐优_姚常亮

赞同来自:

同问。我的APP自己测试是好着的,上架小米应用市场的时候,人家测出来的我的APP,有crash的现象,发过来的日志我一看,和环信有关:

05-09 21:16:11.106 20407 20407 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at com.hyphenate.chat.a.b.a(Unknown Source) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at com.hyphenate.chat.a.b.a(Unknown Source) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at com.hyphenate.chat.EMClient.init(Unknown Source) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at com.hyphenate.easeui.EaseUI.init(EaseUI.java:119) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at com.hyphenate.ehetu_teacher.DemoHelper.init(DemoHelper.java:190) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at com.hyphenate.ehetu_teacher.DemoApplication.onCreate(DemoApplication.java:93) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4598) 05-09 21:16:11.106 20407 20407 E AndroidRuntime: ... 9 more
 
环信你倒是出来说句话啊

要回复问题请先登录注册

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

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

×