此应用无权使用Firebase身份验证

时间:2018-02-25 06:08:36

标签: android firebase firebase-authentication

在物理设备上使用Firebase移动身份验证时出现此错误。 寻找解决方案我做了以下事情: 1.在firebase控制台中更新SHA1 2.我正在使用firebase Api和android N. 3.我检查了游戏商店的更新,并显示它是最新版本 注意:我没有使用模拟器,而是使用真实设备,但它仍无法使用。

  

02-25 11:25:23.430 13164-13164 / com.odetion.odetion W / BiChannelGoogleApi:[FirebaseAuth:] getGoogleApiForMethod()返回Gms   02-25 11:25:24.077 13164-13164 / com.odetion.odetion W / OtpVerificationActivity:onVerificationFailed                                                                                 com.google.firebase.auth.FirebaseAuthException:此应用无权使用Firebase身份验证。请确认在Firebase控制台中配置了正确的软件包名称和SHA-1。 [应用验证失败]                                                                                     在com.google.android.gms.internal.zzdxm.zzao(未知来源)                                                                                     在com.google.android.gms.internal.zzdye.zza(未知来源)                                                                                     在com.google.android.gms.internal.zzdyf.run(未知来源)                                                                                     在android.os.Handler.handleCallback(Handler.java:751)                                                                                     在android.os.Handler.dispatchMessage(Handler.java:95)                                                                                     在android.os.Looper.loop(Looper.java:154)                                                                                     在android.app.ActivityThread.main(ActivityThread.java:6165)                                                                                     at java.lang.reflect.Method.invoke(Native Method)                                                                                     在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:888)                                                                                     在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

1 个答案:

答案 0 :(得分:1)

正如你的错误所说:

Please verifythat the correct package name and SHA-1 are configured in the Firebase Console.

问题是您的package name不正确或您的SHA-1。确保两者都正确,然后重试。