Flutter CloudFirestorePlugin.java 使用未经检查或不安全的操作。注意:使用 -Xlint:unchecked 重新编译以了解详细信息

ÇAĞ*_*BUK 4 dart firebase firebase-authentication flutter

我正在为我的 Flutter 项目设置 Firebase。当我使用signInAnonymously()方法时,它会引发此错误:

I/BiChannelGoogleApi( 9532): [FirebaseAuth: ] getGoogleApiForMethod()
returned Gms: com.google.firebase.auth.api.internal.zzaq@41ffdb0
I/flutter ( 9532): PlatformException(FirebaseException, An internal
error has occurred. [ API key not valid. Please pass a valid API key.
], null) I/flutter ( 9532): error sign in
Run Code Online (Sandbox Code Playgroud)

Gen*_*nes 5

用于访问 firebase 功能的 API 密钥似乎无效。

试试这个重新下载google-services.json文件并将其放在android>app目录
然后运行flutter clean然后再次运行应用程序