首页 > 解决方案 > Firebase crashlytics build_id 为零,无法上传映射文件

问题描述

我无法在仪表板中启用 firebase crashlytics 并且 com_crashlytics_build_id 具有 00000000000000000000000000000000 值:

  1. 我在firebase中的现有项目中添加了一个新应用程序,下载json文件并将其放在应用程序文件夹中。

  2. 添加:

    // 添加 Crashlytics Gradle 插件。

    类路径 'com.google.gms:google-services:4.3.5'

    类路径 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'

// Google Services Gradle plugin
apply plugin: 'com.google.gms.google-services'
// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
  1. 建一个项目,发现dashboard中app是空的,com_crashlytics_build_id.xml有下一个值:

在此处输入图像描述

  1. 看起来映射文件也没有上传。
  2. 试图让应用程序崩溃,但在仪表板中仍然看不到任何崩溃。
  3. 构建 apk 时我没有看到任何错误,项目构建工作正常。 如何启用 Crashlytics?

在此处输入图像描述

标签: androidfirebasecrashlytics

解决方案


推荐阅读