为什么QBDialog的收件人ID始终为空,但在Quickblox中有2个不同的对手ID

时间:2018-11-23 09:06:55

标签: android chat quickblox quickblox-android

我是第一次实现Quickblox。即使设置了对手ID,我也不知道为什么我的收件人ID为空。我在“简单聊天”模块的“聊天活动”中得到了这个消息。

这是QB SDK中的callack qbChatDialog.initForChat(QBChatService.getInstance());

java.lang.RuntimeException:无法启动活动ComponentInfo {com.saffron.hq / com.saffron.hq.chat.ChatActivity}:java.lang.IllegalArgumentException:收件人ID不能为null或为空             在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2335)             在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2397)             在android.app.ActivityThread.access $ 800(ActivityThread.java:151)             在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1310)             在android.os.Handler.dispatchMessage(Handler.java:102)             在android.os.Looper.loop(Looper.java:135)             在android.app.ActivityThread.main(ActivityThread.java:5268)             在java.lang.reflect.Method.invoke(本机方法)             在java.lang.reflect.Method.invoke(Method.java:372)             在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:902)             在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)          原因:java.lang.IllegalArgumentException:收件人ID不能为null或为空             在com.quickblox.chat.model.QBChatDialog.initForChat(未知来源)             在com.quickblox.chat.model.QBChatDialog.initForChat(未知来源)             在com.saffron.hq.chat.ChatActivity.onCreate(ChatActivity.java:108)             在android.app.Activity.performCreate(Activity.java:6033)             在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)             在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288)             在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2397)             在android.app.ActivityThread.access $ 800(ActivityThread.java:151)             在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1310)             在android.os.Handler.dispatchMessage(Handler.java:102)             在android.os.Looper.loop(Looper.java:135)             在android.app.ActivityThread.main(ActivityThread.java:5268)             在java.lang.reflect.Method.invoke(本机方法)             在java.lang.reflect.Method.invoke(Method.java:372)             在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:902)             com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)

0 个答案:

没有答案