简体   繁体   English

如何解决flutter中的内部错误以使用firebase_auth

[英]How to solve Internal error in flutter to use firebase_auth

I am using stable version of flutter and firebase_auth latest version but it give me error again and again我正在使用稳定版本的颤振和 firebase_auth 最新版本,但它一次又一次地给我错误

flutter: PlatformException(ERROR_INTERNAL_ERROR, An internal error has occurred, print and inspect the error details for more information., null)

please help me to solve me this problem .请帮我解决这个问题。 Thanks in advance…..提前致谢…..

make sure your desired method is enabled in the firebase console eg.确保在 Firebase 控制台中启用了您想要的方法,例如。 anonymous sign-in, email/pass sign-in.匿名登录,电子邮件/密码登录。

If enabling Sign-in methods in Firebase console/Authentication didn't help you make sure your key is not restricted in Google Cloud Platform:如果在 Firebase 控制台/身份验证中启用登录方法无法帮助您确保您的密钥在 Google Cloud Platform 中不受限制:

  1. go to https://console.cloud.google.com/转到https://console.cloud.google.com/
  2. open APIs & Services -> Credentials tab打开 API 和服务 -> 凭据选项卡在此处输入图像描述
  3. open your keys Android/iOS/FLutter打开你的钥匙 Android/iOS/FLutter
  4. Select "Don't restrict key" or carefully check APIs you want to enable.选择“不限制密钥”或仔细检查您要启用的 API。 在此处输入图像描述

It helped in my case, hope it helps you as well.它对我有帮助,希望它也能帮助你。 Cheers!干杯!

My issue was that my simulator had cached a user from a different project (I have dev/prod firebase projects)我的问题是我的模拟器缓存了来自不同项目的用户(我有 dev/prod firebase 项目)

I had to log out and register again.我不得不注销并重新注册。

Hopefully, this saves someone as much head-scratching as I've just been through.希望这可以像我刚刚经历的那样节省一些令人头疼的事情。

仍然遇到相同问题的任何人都可以重新启动模拟器或检查您的互联网连接

Do also double-check the values in your GoogleService-Info.plist.还要仔细检查您的 GoogleService-Info.plist 中的值。 I got this same error after using an incorrect API_KEY.使用不正确的 API_KEY 后,我得到了同样的错误。

不要忘记在Authentication中添加在Sign-in Domain添加的DynamicLink的动态链接

暂无
暂无

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

相关问题 Flutter 依赖中的版本错误,包含 dialogflow、firebase_auth 和 http - Error with version in Flutter depencies with dialogflow, firebase_auth and http 如何使用 Firebase_Auth 和 Flutter 登录 Twitter - How to Sign In with Twitter using Firebase_Auth with Flutter Flutter:firebase_auth 好像不行,怎么授权? - Flutter: firebase_auth seems not to work, how do I authorize? 尽管在 firebase_auth flutter 中注册了一个独特的 email,但仍然引发“firebase_auth/email-already-in-use”异常 - Still raise “firebase_auth/email-already-in-use” exception, although registered an unique email in firebase_auth flutter Flutter - firebase_auth updateProfile 方法不起作用 - Flutter - firebase_auth updateProfile method is not working Flutter firebase_auth signInWithCredential 不适用于 android - Flutter firebase_auth signInWithCredential is not working on android Dart Flutter 顺序 firebase_auth 错误 - Dart Flutter sequential firebase_auth errors Flutter:firebase_auth 取决于 firebase_auth_platform_interface 错误 - Flutter : firebase_auth depends on firebase_auth_platform_interface Error 未处理的异常:[firebase_auth/unknown] null:使用颤振/firebase 进行电话身份验证时出错 - Unhandled Exception: [firebase_auth/unknown] null: Error in Phone Authentication using flutter/firebase Flutter&Firebase-与firebase_auth一起使用firebase_storage - Flutter & Firebase - using firebase_storage along with firebase_auth
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM