简体   繁体   English

com.google.firebase.auth.FirebaseAuthException:该应用无权使用Firebase身份验证。

[英]com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication.

I cross checked everything SHA-1 is also correct as well as the packagename i am using real android device but still this error is showing. 我交叉检查了SHA-1的所有内容,以及我使用的是真正的android设备的软件包名称,也都是正确的,但仍显示此错误。

onVerificationFailed com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ] at com.google.firebase.auth.api.internal.zzce.zzb(Unknown Source) at com.google.firebase.auth.api.internal.zzdf.zza(Unknown Source) at com.google.firebase.auth.api.internal.zzdg.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6095) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) onVerificationFailed com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ] at com.google.firebase.auth.api.internal.zzce.zzb(Unknown Source) at com.google.firebase.auth.api.internal.zzdf.zza(Unknown Source) at com.google.firebase.auth.api.internal.zzdg.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6095) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) here are the screenshots for SHA-1: onVerificationFailed com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ] at com.google.firebase.auth.api.internal.zzce.zzb(Unknown Source) at com.google.firebase.auth.api.internal.zzdf.zza(Unknown Source) at com.google.firebase.auth.api.internal.zzdg.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6095) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)上的onVerificationFailed com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ] at com.google.firebase.auth.api.internal.zzce.zzb(Unknown Source) at com.google.firebase.auth.api.internal.zzdf.zza(Unknown Source) at com.google.firebase.auth.api.internal.zzdg.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6095) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)是SHA-1的屏幕截图: 来自Android Studio的SHA-1

Firebase应用程序设置

我的包裹名称

my package name above 我上面的包裹名称

I had the same issue recently. 我最近有同样的问题。 If Your app was on the play store,I would have told you to add the SHA-1 provided by play store as well. 如果您的应用程序在Play商店中,我会告诉您还要添加Play商店提供的SHA-1。 But since it is just a debug mode.Make sure you have the recent SHA-1 as it can change based on some factors. 但是由于这只是一种调试模式,因此请确保您拥有最新的SHA-1,因为它可能会因某些因素而发生变化。

This issue only happened to my OPPO phone. 此问题仅发生在我的OPPO手机上。 I guess some Chinese phone manufactories root Android system so the phone is detected as a simulator? 我猜有些中国手机制造商会采用Android系统,因此该手机被检测为模拟器吗? Anyway, cope SHA-1 from google play to firebase works with me. 无论如何,从Google Play到Firebase都可以应付SHA-1。

You can find google play SHA-1 from Google Play Console -> Release management -> App signing. 您可以从Google Play控制台->版本管理->应用签名找到Google Play SHA-1。 在哪里可以找到Google Play的签名SHA-1

Just copy those SHA-1 to firebase. 只需将SHA-1复制到firebase。

For Firebase console. 对于Firebase控制台。 Go to "Project settings". 转到“项目设置”。 You can find the place to paste SHA-1 from google play. 您可以找到从Google Play粘贴SHA-1的地方。 在此处输入图片说明

确保Playstore和Firebase仪表板中的SHA1键相同

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 FirebaseNetworkException无法转换为com.google.firebase.auth.FirebaseAuthException - FirebaseNetworkException cannot be cast to com.google.firebase.auth.FirebaseAuthException com.google.firebase.auth.FirebaseAuthException:Firebase ID令牌未由有效的公钥签名 - com.google.firebase.auth.FirebaseAuthException: Firebase ID token isn't signed by a valid public key signInAnonymously:FAILURE com.google.firebase.auth.FirebaseAuthException:尽管启用了匿名登录 - signInAnonymously:FAILURE com.google.firebase.auth.FirebaseAuthException: despite Anonymous Sign in enabled 错误:程序类型已存在:com.google.firebase.auth.FirebaseAuthException - Error: Program type already present: com.google.firebase.auth.FirebaseAuthException 此应用无权使用 Firebase 身份验证。 请确认在 Firebase 中配置了正确的 package 名称和 SHA-1 - This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase 此应用无权使用 Firebase 身份验证。 验证是否在 Firebase 控制台中配置了正确的包名称和 SHA-1 - This app is not authorized to use Firebase Authentication. Verify that the correct package name and SHA-1 are configured in the Firebase Console “此应用无权使用Firebase身份验证” - “This app is not authorized to use Firebase Authentication” 此应用无权使用Firebase身份验证 - This app is not authorized to use Firebase Authentication “此应用无权在模拟器中使用 Firebase 身份验证” - "This app is not authorized to use Firebase Authentication" in Emulator 此应用无权在 USB 调试上使用 Firebase 身份验证 - This app is not authorized to use Firebase Authentication on USB Debugging
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM