简体   繁体   中英

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?

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM