Android -File google-services.json丢失。没有它,Google服务插件就无法运行 [英] Android -File google-services.json is missing. The Google Services Plugin cannot function without it

查看:2572
本文介绍了Android -File google-services.json丢失。没有它,Google服务插件就无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的应用连接到Firebase,但一直说google-services.json丢失了,尽管我已经将它添加到了正确的位置。其实,我最后一次尝试这个(在不同的应用程序),它的工作,但这一次并没有。我读了很多文章,但我的问题仍然存在。任何帮助?

谢谢!

解决方案

您必须下载从 Firebase 项目设置



请参考链接,以获取获取Android应用程序的配置文件注意这个文件的用法如下:

lockquote

复制文件到你的Android Studio项目的 app / 文件夹,或
app / src / {build_type} 文件夹,如果您使用多个生成
类型。



I'm trying to connect my app to Firebase, but it keeps saying google-services.json is missing, even though I've added it to the right place. Actually, the last time I tried this (on a different app), it worked, but this time it doesn't. I read a lot of articles but my problem still persists. Any help?

Thanks!

解决方案

You have to download the config file for your Android app from Firebase Project settings.

Please refer to this link for steps of Getting a config file for your Android app

Note that the file should be used as follows:

Copy the file into the app/ folder of your Android Studio project, or into the app/src/{build_type} folder if you are using multiple build types.

这篇关于Android -File google-services.json丢失。没有它,Google服务插件就无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆