michal
michal

Reputation: 17

How to save google-services.json file

I'm trying to connect my app to firebase. What do I need to do to save the google-services.json file? My computer automatically download it to text file (I uploaded the pic of the download). How to open and download it?

enter image description here

Upvotes: 0

Views: 786

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599391

The google-services.json file is indeed a text file. But you don't need to open or read it. All you have to do is drag it from explorer/finder into the app folder of your app in Android Studio. From there on, the Android app will automatically find the file when it builds the app.

If you're having problems with this, you might be better served by using the Firebase Assistant that is built into Android Studio. Go to the Tools menu and then click Firebase.

Upvotes: 0

Related Questions