简体   繁体   English

我应该编辑google-services.json文件吗?

[英]Am I supposed to edit the google-services.json file?

I got an email from Google that says: 我收到了一封来自Google的电子邮件,内容为:

We have detected a publicly accessible Google API key associated with the following Google Cloud Platform project 我们检测到与以下Google Cloud Platform项目关联的可公开访问的Google API密钥

and they point at the api key inside my google-services.json file and at a url of someone hosting my apk. 它们指向我的google-services.json文件中的api键以及托管我的apk的人的网址。

The google-services.json file is just what I got when following the Firebase instructions and put it where it said to put it. google-services.json文件正是我按照Firebase的说明并将其放在要放置的位置时得到的文件。 So did I do something wrong? 那我做错了吗?

No you are not supposed to edit it, you have to restrict it. 不,您不应该对其进行编辑,而必须对其进行限制

Note that if you are using Android Studio, you can get the signing report see this accepted answer here. 请注意,如果您使用的是Android Studio,则可以获取签名报告,请在此处查看此接受的答案。

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

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