gpt4 book ai didi

flutter :FirebaseException:发生内部错误。 [ CONFIGURATION_NOT_FOUND ]

转载 作者:行者123 更新时间:2023-12-04 03:43:30 24 4
gpt4 key购买 nike

我能够成功执行 google 签名,当我将 token 传递给 firebase 时,它​​返回:

W/System  (20511): Ignoring header X-Firebase-Locale because its value was null.
I/flutter (20511): [firebase_auth/unknown] com.google.firebase.FirebaseException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ]
我的json文件很好。
我实现:
final _auth = FirebaseAuth.instance;
String email;
String password;

RoundButton(
title: 'register',
color: Colors.blueAccent,
onPressed: () async {
try {
final newUser = await _auth.createUserWithEmailAndPassword(
email: email, password: password);
if (newUser != null) {
Navigator.pushNamed(context, ChatScreen.id);
}
} catch (e) {
print(e);
}
})

最佳答案

这可能是由禁用的电子邮件/密码登录引起的,默认情况下禁用。在 firebase 控制台中的身份验证部分启用,如下所示。 enter image description here

关于 flutter :FirebaseException:发生内部错误。 [ CONFIGURATION_NOT_FOUND ],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65555623/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com