问题描述
我已经登录过了,为什么发起聊天闪退,报这个错误
解决方案
判断下是否登录成功,登录成功才可以收发消息
解决方案二:
把全部的trace贴出来看一下!
解决方案三:
登录成功了没有
解决方案四:
遇到同样的错误,崩溃日志是E/AndroidRuntime(12248): java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.com.nggirl.nguser/com.iuxstudio.pumpkincarriagecustom.chat.ChatAty}: java.lang.IllegalStateException: Please login first!E/AndroidRuntime(12248): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3149)E/AndroidRuntime(12248): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3248)E/AndroidRuntime(12248): at android.app.ActivityThread.access$1000(ActivityThread.java:197)E/AndroidRuntime(12248): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)E/AndroidRuntime(12248): at android.os.Handler.dispatchMessage(Handler.java:102)E/AndroidRuntime(12248): at android.os.Looper.loop(Looper.java:145)E/AndroidRuntime(12248): at android.app.ActivityThread.main(ActivityThread.java:6872)E/AndroidRuntime(12248): at java.lang.reflect.Method.invoke(Native Method)E/AndroidRuntime(12248): at java.lang.reflect.Method.invoke(Method.java:372)E/AndroidRuntime(12248): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)E/AndroidRuntime(12248): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)E/AndroidRuntime(12248): Caused by: java.lang.IllegalStateException: Please login first!E/AndroidRuntime(12248): at com.easemob.chat.core.i.a(Unknown Source)E/AndroidRuntime(12248): at com.easemob.chat.EMConversationManager.getConversation(Unknown Source)E/AndroidRuntime(12248): at com.easemob.chat.EMChatManager.getConversationByType(Unknown Source)E/AndroidRuntime(12248): at com.iuxstudio.pumpkincarriagecustom.chat.ChatAty.onCreate(ChatAty.java:117)E/AndroidRuntime(12248): at android.app.Activity.performCreate(Activity.java:6550)E/AndroidRuntime(12248): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120)E/AndroidRuntime(12248): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3102)
解决方案五:
你这个应该不是进入到聊天界面就闪退的把?是不是点击发送消息闪退,如果收到消息呢?有错误么?
解决方案六:
你的问题解决了吗?我也遇到了这个问题,请问一下要怎么解决呢