简体   繁体   English

firebase登录不在flutter android app中工作

[英]firebase login not working in flutter android app

Everything was working good yesterday with firebase auth, today it gives me that error. 昨天使用firebase auth,一切都运行良好,今天它给了我这个错误。

W/BiChannelGoogleApi(19191): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@138591a
W/DynamiteModule(19191): Local module descriptor class for com.google.firebase.auth not found.
I/FirebaseAuth(19191): [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth(19191): [FirebaseAuth:] Preparing to create service connection to gms implementation
I/flutter (19191): PlatformException(exception, An internal error has occurred. [ Requests from this Android client application are blocked. ], null)

This looks similar to this as per your error; 根据您的错误,这看起来类似于 ;

Requests from this Android client application com.joycustomers.joybank are blocked. 来自此Android客户端应用程序com.joycustomers.joybank的请求被阻止。

You'd need to check for two things; 你需要检查两件事;

  1. Your SHA1 signing certificate key being used is correct and listed in the Firebase Console's project settings. 您使用的SHA1签名证书密钥是正确的,并列在Firebase控制台的项目设置中。
  2. You should have the freshest copy of google-services.json from Firebase Console's project settings where you add signing certificate keys. 您应该从Firebase控制台的项目设置中获取最新的google-services.json副本,您可以在其中添加签名证书密钥。 There's a download google-services.json button. 有一个下载google-services.json按钮。 Always use the freshest copy whenever you've changed Firebase settings. 每当您更改Firebase设置时,请始终使用最新的副本。 Read more here . 在这里阅读更多。

Update: 更新:

OP had updated his Firebase Project settings by changing from Free to Pay as You Go payment plan. OP通过将免费更改为付款计划来更新其Firebase项目设置。 This changed his Firebase Project settings and a fresh copy of google-services.json form the Firebase Console fixed the issue. 这改变了他的Firebase项目设置,并且Firebase控制台上的google-services.json的新副本解决了这个问题。

  1. Get SHA1 first by command goto your .android folder mine path is and command is as following 首先通过命令获取SHA1你的.android文件夹我的路径是,命令如下

     C:\\Users\\lenovo\\.android>keytool -list -v -keystore "C:\\Users\\lenovo\\.android\\debug.keystore" -alias androiddebugkey -storepass android -keypass android 

and then 接着

  1. Add it to your firebase.console.com 将它添加到您的firebase.console.com

  2. And download the google-services.json file and put in android/app folder 并下载google-services.json文件并放入android/app文件夹

if problem is occuring same then you have to add your support email in firebase 如果问题发生,那么你必须在firebase中添加支持电子邮件 在此输入图像描述 add support email 添加支持电子邮件

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM