Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 don't appear to have access to. Request access or delete the file in order to proceed with the connection process.

I don't know how to request to access and delete. What should I do?

like image 652
Deepak Vajpayee Avatar asked Feb 08 '17 05:02

Deepak Vajpayee


People also ask

What is Google service json?

The google-services plugin has two main functions: Process the google-services. json file and produce Android resources that can be used in your application's code. See Adding the JSON File more information. Add dependencies for basic libraries required for the services you have enabled.

Why do I need Google-services json?

The google-services. json file created in this doc is used within your app to connect to firebase and facilitate Android Push Notifications and is normally labelled google-services. json.


1 Answers

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.

like image 165
Bob Snyder Avatar answered Sep 19 '22 23:09

Bob Snyder