我在我的应用程序中实现了google登录,它在调试模式下可以完美运行,但是在发布模式下却出现如下错误:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.e.trackitapp, PID: 23159
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=421, result=-1, data=Intent { (has extras) }} to activity {com.e.trackitapp/com.e.trackitapp.Activities.LoginActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'c.e.u0.a.a.c.a c.e.u0.a.a.b.l()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4453)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4495)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1858)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6820)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:922)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'c.e.u0.a.a.c.a c.e.u0.a.a.b.l()' on a null object reference
at com.e.trackitapp.Activities.LoginActivity.a(:86)
at com.e.trackitapp.Activities.LoginActivity.onActivityResult(:108)
at android.app.Activity.dispatchActivityResult(Activity.java:7590)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4446)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4495)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1858)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6820)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:922)
出现Google帐户对话框,它要求我允许“我的应用”使用我的数据,并在我允许时关闭它们。
有什么想法吗?
答案 0 :(得分:0)
您是否将生产SHA1密钥添加到Firebase设置?我想您可能会错过它。