这可能是个愚蠢的问题,但我在尝试为我的应用生成 google-services.json
文件时遇到了问题。我正在关注这个 guide from the google developers team设置我的分析项目但是当我点击 get configuration file按钮没有任何反应,我只是得到一个永远不会结束的加载微调器。
我在不同的浏览器上都试过了,还是一样。我检查了 chrome 控制台并得到:
Refused to display 'https://accounts.google.com/ServiceLogin?service=cloudconsole&osid=1&passiv…3Dtrue%26cntlbl%3DContinue%2BAdding%2BAnalytics%26cntapi%3Danalytics&hl=en' in a frame because it set 'X-Frame-Options' to 'DENY'.
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://console.developers.google.com') does not match the recipient window's origin ('null').
有什么建议吗?
最佳答案
您在配置时正在尝试此链接 https://developers.google.com/analytics/devguides/collection/android/v4/start
点击获取配置文件
点击配置服务 之后第三个窗口将打开
现在选择您的应用程序的分析帐户。
快点你已经完成了。
请使用所有流程并按原样完成。
如果您还有任何问题,请告诉我。
关于android - 为 Android 生成 google-services.json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34401143/