从 Fabric 切换到 Firebase Crashlytics 问题:缺少 Crashlytics 构建 ID

P.S*_*.S. 12 android build firebase google-fabric

从 Fabric 切换到 Firebase Crashlytics SDK 后,我遇到了问题。问题如标题所示:缺少 Crashlytics 构建 ID。当您的应用程序的构建配置中缺少 Crashlytics 工具时,就会发生这种情况。请查看 Crashlytics 入门说明并确保您拥有有效的 Crashlytics 帐户。

我有从控制台生成的 json 文件(仔细检查这些和键,其他一切看起来没问题)。我在 gradle 中添加了库。我正在调用'throw new RuntimeException("Test Crash");' 并收到一个关于构建 ID 的错误,我不知道它是什么......

Vai*_*van 8

似乎可能会错过教学

apply plugin: 'com.google.firebase.crashlytics'
Run Code Online (Sandbox Code Playgroud)


小智 6

确保有以下两件事: 在根 build.gradle中:

buildscript {
    ...
    dependencies {
        ...
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
    }
    ...
}
Run Code Online (Sandbox Code Playgroud)

在app/build.gradle下:

...
apply plugin: 'com.google.firebase.crashlytics'
...
Run Code Online (Sandbox Code Playgroud)


Ole*_*ysh 0

听起来您正在 Firebase 应用程序中使用 Fabric 依赖项。当您的 Crashlytics Gradle 插件配置不正确时,就会出现此错误。我建议再次阅读这些入门说明,以确保集成中的一切看起来都正确。