真实设备 - nullpointer,模拟器 - 工作

时间:2018-02-07 04:19:28

标签: android firebase firebase-authentication

原始代码已被拍摄,未经Google示例修改。我看到模拟器显示nullpointer和真正的设备运行良好。 我使用真正的HTC0PCV1 API 19 仿真器Galaxy S7 API 25 MinSdk 19

在模拟器和真实设备上Play商店已更新。不明白如何修复真实设备。代码是原始Google

FATAL EXCEPTION: main
              Process: com.borisruzanov.social, PID: 3645
              java.lang.NullPointerException
                  at com.google.android.gms.internal.zzdvv.zzb(Unknown Source)
                  at com.google.android.gms.internal.zzdwc.zza(Unknown Source)
                  at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(Unknown Source)
                  at com.borisruzanov.social.ui.EmailAuthActivity.createAccount(EmailAuthActivity.java:75)
                  at com.borisruzanov.social.ui.EmailAuthActivity.onClick(EmailAuthActivity.java:221)
                  at android.view.View.performClick(View.java:4472)
                  at android.view.View$PerformClick.run(View.java:18599)
                  at android.os.Handler.handleCallback(Handler.java:733)
                  at android.os.Handler.dispatchMessage(Handler.java:95)
                  at android.os.Looper.loop(Looper.java:157)
                  at android.app.ActivityThread.main(ActivityThread.java:5883)
                  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:872)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:688)
                  at dalvik.system.NativeStart.main(Native Method)

}

错误是

Column A

0 个答案:

没有答案