Skip to content Skip to sidebar Skip to footer

Google-services.json" Was Found, But It Indicates A Project Id That You Don't Appear To Have Access To

In Firebase Option Android Studio when I click on 'connect to firebase' I am getting the following error. 'google-services.json' was found, but it indicates a project ID that you

Solution 1:

This error will occur if you are signed in to Android Studio and the Firebase Console with different accounts.

In Android Studio, click on the small profile icon in the upper right corner to see your sign-in account. Do the same for the Firebase Console tab of your browser. If they are different, sign out and sign in to make them the same.

Solution 2:

For me, I had to navigate to the web console:

https://console.firebase.google.com/u/0/

and add my app as a project manually:

firebase console

After clicking "ADD FIREBASE" it worked.

Solution 3:

Just delete "google-services.json" file in "app" folder of your project and re-connect your app to Firebase with Assistant

Solution 4:

Reason:

  • if you are signed in to Android Studio and the Firebase Console with different accounts
  • Or your JSON file is corrupted

Solution :

  • Use same account for Studio and console.

  • Delete the corrupted JSON and use Studio plugin to create the project, it will automatically handle the corner cases

Solution 5:

For me, the problem was that I had a wrong "google-service.json" file in my project. (I signed in to Android Studio & Firebase Console)

If you are like me, you need this.

① delete all "google-service" file. You can easily find it by [Ctrl + shift + n] and put the file name in.

② Go to Firebase Console → Setting → App setting → app card below, now you can find  "goole-service.json" file that is customized for your project. Download it.

③ Copy the new file and paste it in your Project. (Project → app → here!!!)

④ Go to Firebase assistant and click "connect to Firebase"

Post a Comment for "Google-services.json" Was Found, But It Indicates A Project Id That You Don't Appear To Have Access To"