注册

环信加入极光后报错

07-06 11:13:43.445 13630-13630/com.wanhe.gteacher:pushcore E/AndroidRuntime: FATAL EXCEPTION: main
                                                                             Process: com.wanhe.gteacher:pushcore, PID: 13630
                                                                             java.lang.RuntimeException: Unable to create application com.wanhe.gteacher.MyApp: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.hyphenate.chat.a.b.c(boolean)' on a null object reference
                                                                                 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4729)
                                                                                 at android.app.ActivityThread.access$1600(ActivityThread.java:153)
                                                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
                                                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                 at android.os.Looper.loop(Looper.java:148)
                                                                                 at android.app.ActivityThread.main(ActivityThread.java:5438)
                                                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
                                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
                                                                              Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.hyphenate.chat.a.b.c(boolean)' on a null object reference
                                                                                 at com.hyphenate.chat.EMClient.setDebugMode(Unknown Source)
                                                                                 at com.wanhe.gteacher.MyApp.initEaseUI(MyApp.java:42)
                                                                                 at com.wanhe.gteacher.MyApp.onCreate(MyApp.java:23)
                                                                                 at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
                                                                                 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4726)
                                                                                 at android.app.ActivityThread.access$1600(ActivityThread.java:153)
                                                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
                                                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                 at android.os.Looper.loop(Looper.java:148)
                                                                                 at android.app.ActivityThread.main(ActivityThread.java:5438)
                                                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
                                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
已邀请:
能说一下解决方法么

要回复问题请先登录注册