Firebase Crash Reporting error: client application com.xxxx are blocked

Firebase Crash Reporting error: client application com.xxxx are blocked

我已经在我的项目中成功实施了 FCM 和 Firebase 分析,但我在尝试使用 Firebase 崩溃报告时发现了一个错误,我不知道我遗漏了什么。

我只是想在 the official tutorial 之后使用 Firebase 崩溃报告并收到此错误:
它说:

Server did not receive report: Origin Error message: Requests from this Android client application com.xxxxxx are blocked.

在 google 和此处(堆栈溢出)中挖掘后,我发现了一些相关问题( link 1, , link 3) 但是 none 他们的解决方案对我有用。我的意思是,有人谈论检查 API_KEY,其他人谈论检查在控制台中启用的崩溃报告并且列表继续。在发布这个问题之前,我已经尝试了这些答案。

更新: 为那些不想看上面链接的人解释一下:我尝试更新 google-services.json 文件更改API_KEY,删除并再次添加 SHA1,将 API_KEY 留空,等等。为我所做的每个更改下载 google-services.json 文件,但没有成功。

我的 API_KEY 在我的 google-services.json 文件中看起来像:

"api_key": [
    {
      "current_key": "AIzaxxxxxxxxxxzxxxxxx"
    },
    {
      "current_key": "AIzaxxxxxxxxxxxxxx"
    }
  ],

并且我检查了我的 google-service.json 是否已调试并发布 SHA1。

更新 奇怪的是我在 Analytics 部分得到了报告,你可以在下一张截图中看到:



查看 console.developers.google.com 中的项目,我发现我有移动崩溃和性能报告 API 启用(就像您在下面的屏幕截图中看到的那样):



单击 "Mobile Crash and Performance Reporting API" 后,我得到了这个: 上图显示了 2 个图像:到 "Mobile Crash and Performance Reporting API" 的所有流量都已完成,错误由 API 处理。如您所见,它说我的所有请求都是 403 Error(您可以在它说 403:0.0004 的地方看到它):这是真的,我已经尝试了 4 次而且每次我都遇到相同的控制台错误。

不知道发生了什么或我错过了什么

如果您需要有关 gradle 应用程序文件的信息来帮助我,这里是:

compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.google.android.gms:play-services-maps:10.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.google.android.gms:play-services-awareness:10.0.1'

我有同样的问题,通过下载新的配置文件解决了问题 google-services.json

我遇到了类似的问题,我尝试降低 gradle 级别,这对我有所帮助,因为最新级别存在一些稳定性问题。

至:

compile 'com.google.firebase:firebase-core:9.2.1'
compile 'com.google.firebase:firebase-messaging:9.2.1'
compile 'com.google.firebase:firebase-crash:9.2.1'
compile 'com.google.android.gms:play-services-maps:9.2.1'
compile 'com.google.android.gms:play-services-location:9.2.1'
compile 'com.google.android.gms:play-services-awareness:9.2.1'

你也 sdk 到 :

compileSdkVersion 23
buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "cloud.savari.example.com.fcm"
    minSdkVersion 17
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}

我遇到了同样的问题,通过将 Google 控制台中的 API 键 Key restriction 设置为 NONE.

解决了这个问题