[英]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; 你需要检查两件事;
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的新副本解决了这个问题。
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 接着
Add it to your firebase.console.com
将它添加到您的firebase.console.com
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.