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

Him*_*wat 2 firebase firebase-authentication flutter

我正在使用稳定版的 flutter 和 firebase_auth 最新版本,但它一次又一次地给我错误 

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

请帮我解决这个问题。提前致谢…..

Kir*_*zin 12

如果在 Firebase 控制台/身份验证中启用登录方法无法帮助您确保您的密钥在 Google Cloud Platform 中不受限制:

  1. 前往Google Cloud Console

  2. 打开APIs & Services->Credentials选项卡。

    在此输入图像描述

  3. 打开您的 Android/iOS/Flutter 密钥。

  4. 选择“不限制密钥”或仔细检查您要启用的 API。

    在此输入图像描述


Bre*_*ung 5

确保在 firebase 控制台中启用了您想要的方法,例如。匿名登录、电子邮件/密码登录。