android - 为 Android 生成 google-services.json

标签 android google-analytics

这可能是个愚蠢的问题,但我在尝试为我的应用生成 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

那么请按照以下步骤进行 enter image description here

点击获取配置文件

现在选择您的应用名称。
enter image description here

点击配置服务 之后第三个窗口将打开

enter image description here

现在选择您的应用程序的分析帐户。

快点你已经完成了。

请使用所有流程并按原样完成。

如果您还有任何问题,请告诉我。

关于android - 为 Android 生成 google-services.json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34401143/

相关文章:

javascript - Object对象无法转换为字符串

Android - 应用更新后闹钟丢失

android - 每个应用程序只有一个 BroadcastReceiver?

javascript - 如何可靠地获取 Google Analytics 生成的 session ID?

google-analytics - 来自 Google 分析的 BigQuery 设置

javascript - Google Analytics - 它如何跟踪点击次数?

java - 在动态创建的元素上添加 onClick 监听器不起作用

java - 以编程方式在RelativeLayout中设置 View 边距没有任何影响

android - 在android中使用post在服务器上上传图片是给源文件不存在?

google-analytics - Google Big查询按页面路径和Google Analytics(分析)数据的自定义维度获取用户计数