Flutter CloudFirestorePlugin.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details

Viewed 7842

I am setting Firebase for my Flutter project. When I use signInAnonymously() method it throws this error:

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
1 Answers

It seems the API key for accessing firebase features is invalid.

Try this Redownload the google-services.json file and place it in android>app directory
Then run flutter clean then run the app again

Related