集成环信只能发图片 语音,发送文字直接崩溃
现在集成环信demo到项目中去了,进入主页面直接崩溃,看代码提示
EaseUI.getInstance().getNotifier().reset();
报null,把这个代码临时注销之后,可以运行,在进行发送消息的时候
选择文字发送直接崩溃
选择图片、声音可以正常发送,但是声音播放的时候又崩溃
崩溃日志如下
08-28 19:07:30.562 31143-31143/com.is.shipphone E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
08-28 19:07:30.572 31143-31143/com.is.shipphone E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.is.shipphone, PID: 31143
java.lang.NullPointerException
at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoicePlayClickListener.playVoice(EaseChatRowVoicePlayClickListener.java:94)
at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoicePlayClickListener.onClick(EaseChatRowVoicePlayClickListener.java:168)
at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoice.onBubbleClick(EaseChatRowVoice.java:97)
at com.hyphenate.easeui.widget.chatrow.EaseChatRow$3.onClick(EaseChatRow.java:243)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18439)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5066)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:613)
at dalvik.system.NativeStart.main(Native Method)
有没有遇到过这些问题的朋友能否给点意见,环信的技术支持能否给点帮助。
发现环信的官方demo弄的好乱,集成遇到各种问题,文档看上去不是很清晰,一些问题在难以查找原因,能否像极光那样。 开发一些qq群,然后提供一些技术?
EaseUI.getInstance().getNotifier().reset();
报null,把这个代码临时注销之后,可以运行,在进行发送消息的时候
选择文字发送直接崩溃
选择图片、声音可以正常发送,但是声音播放的时候又崩溃
崩溃日志如下
08-28 19:07:30.562 31143-31143/com.is.shipphone E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
08-28 19:07:30.572 31143-31143/com.is.shipphone E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.is.shipphone, PID: 31143
java.lang.NullPointerException
at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoicePlayClickListener.playVoice(EaseChatRowVoicePlayClickListener.java:94)
at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoicePlayClickListener.onClick(EaseChatRowVoicePlayClickListener.java:168)
at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoice.onBubbleClick(EaseChatRowVoice.java:97)
at com.hyphenate.easeui.widget.chatrow.EaseChatRow$3.onClick(EaseChatRow.java:243)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18439)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5066)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:613)
at dalvik.system.NativeStart.main(Native Method)
有没有遇到过这些问题的朋友能否给点意见,环信的技术支持能否给点帮助。
发现环信的官方demo弄的好乱,集成遇到各种问题,文档看上去不是很清晰,一些问题在难以查找原因,能否像极光那样。 开发一些qq群,然后提供一些技术?
没有找到相关结果
已邀请:
1 个回复
Wxin
EMOptions options = new EMOptions();
// 默认添加好友时,是不需要验证的,改成需要验证
options.setAcceptInvitationAlways(false);
...
EaseUI.getInstance().init(applicationContext, options);