简体   繁体   English

如何保存google-services.json文件

[英]How to save google-services.json file

I'm trying to connect my app to firebase. 我正在尝试将我的应用连接到Firebase。 What do I need to do to save the google-services.json file? 我需要怎么做才能保存google-services.json文件? 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. google-services.json文件确实是一个文本文件。 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. 您所要做的就是将其从资源管理器/查找器拖到Android Studio中应用程序的应用程序文件夹中。 From there on, the Android app will automatically find the file when it builds the app. 从那里开始,Android应用程序在构建应用程序时将自动找到该文件。

If you're having problems with this, you might be better served by using the Firebase Assistant that is built into Android Studio. 如果您对此有疑问,可以使用Android Studio内置的Firebase助手更好地为您服务。 Go to the Tools menu and then click Firebase. 转到“工具”菜单,然后单击“ Firebase”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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