gpt4 book ai didi

android - 文件 google-services.json 丢失了,但是什么服务?

转载 作者:太空狗 更新时间:2023-10-29 15:40:41 26 4
gpt4 key购买 nike

我在使用几天前推出的一项新 Firebase 功能时遇到了问题。我的应用程序以前使用过 Firebase,但现在我想添加存储功能。因此,我将依赖项添加到我的 gradle 文件中:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.firebase:firebase-client-android:2.5.2+'
compile 'com.firebase:geofire:1.1.0+'
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:design:23.2.0'
compile 'com.google.android.gms:play-services-location:9.0.0'
compile 'com.google.firebase:firebase-storage:9.0.0' }

下面我补充说:

apply plugin: 'com.google.gms.google-services'

因为我之前没有使用过 google-services 的插件,所以我缺少 google-servies.json 文件。如此处所述 https://developers.google.com/android/guides/google-services-plugin#troubleshooting我应该通过指定应用程序使用的服务从谷歌获取这个文件。但是,我只使用 Places API,而我只能在此处指定“登录”、“云消息传递”、“分析”、“应用程序邀请”和“广告 Activity ”:https://developers.google.com/mobile/add

最佳答案

如果您在登录后转到此链接“https://console.firebase.google.com/project/yourprojectname/overview”,您将看到一个按钮,上面写着“将 Firebase 添加到您的 Android 应用程序”。单击它,将显示一个弹出窗口。在第 2 步,它会为您提供 google-servies.json 文件的下载链接。按照这些步骤完成。

关于android - 文件 google-services.json 丢失了,但是什么服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37378652/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com