简体   繁体   English

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

[英]Switch from Fabric to Firebase Crashlytics problem: The Crashlytics build ID is missing

After switch from Fabric to Firebase Crashlytics SDK I have a problem.从 Fabric 切换到 Firebase Crashlytics SDK 后,我遇到了问题。 Problem is as in the title: The Crashlytics build ID is missing.问题如标题所示:缺少 Crashlytics 构建 ID。 This occurs when Crashlytics tooling is absent from your app's build configuration.当您的应用的构建配置中缺少 Crashlytics 工具时,就会发生这种情况。 Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account.请查看 Crashlytics 入职说明并确保您拥有有效的 Crashlytics 帐户。

I have json file generated from console(double checked these and keys with everything else looks ok).我有从控制台生成的 json 文件(仔细检查这些和其他一切看起来都不错的键)。 I have libs added in gradle.我在 gradle 中添加了库。 I'm calling 'throw new RuntimeException("Test Crash");'我正在调用'throw new RuntimeException("Test Crash");' and getting an error with build ID which I have no idea what it is...并收到构建 ID 错误,我不知道它是什么...

Seems like instruction could have been missed out似乎可能错过了指导

apply plugin: 'com.google.firebase.crashlytics'

Be sure to have 2 things below: In the root build.gradle :确保有以下两件事:在根 build.gradle 中

buildscript {
    ...
    dependencies {
        ...
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
    }
    ...
}

and under app/build.gradle :app/build.gradle下:

...
apply plugin: 'com.google.firebase.crashlytics'
...

It sounds like you're using Fabric dependencies in your Firebase app.听起来您在 Firebase 应用程序中使用了 Fabric 依赖项。 This error occurs when your Crashlytics Gradle plugin isn't correctly configured.当您的 Crashlytics Gradle 插件配置不正确时,会发生此错误。 I recommend going through these onboarding instructions once more to make sure everything looks right in your integration.我建议再次阅读这些入职说明,以确保您的集成中的所有内容都正确无误。

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

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