简体   繁体   English

Firebase 将 android gradle 插件更新到 7.0.2 后,crashlytics 构建失败

[英]Firebase crashlytics fails build after updating android gradle plugin to 7.0.2

I'm working on multi-flavor android app After updating the Android Gradle plugin to the 7.0.2 version (from '4.1.1') to access a new variant API, I get the following error during the app build:我正在开发多口味 android 应用程序将 Android Gradle 插件更新到7.0.2版本(从“4.1.1”开始)以访问新变体 API 后,我在应用程序构建期间收到以下错误:

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:injectCrashlyticsMappingFileIdRandstadAccDebug' (type 'InjectMappingFileIdTask').
- Type 'com.google.firebase.crashlytics.buildtools.gradle.tasks.InjectMappingFileIdTask' property 'mappingFileId' of mutable type 'org.gradle.api.provider.Property' is writable.

Reason: Properties of type 'org.gradle.api.provider.Property' are already mutable.

Possible solution: Remove the 'setMappingFileId' method.

Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#mutable_type_with_setter for more details about this problem.
- Type 'com.google.firebase.crashlytics.buildtools.gradle.tasks.InjectMappingFileIdTask' property 'resourceFile' of mutable type 'org.gradle.api.file.RegularFileProperty' is writable.

Reason: Properties of type 'org.gradle.api.file.RegularFileProperty' are already mutable.

Possible solution: Remove the 'setResourceFile' method.

Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#mutable_type_with_setter for more details about this problem.

* Try:
Run with --stacktrace option to get the stack trace.  Run with --scan to get full insights.

* Get more help at https://help.gradle.org

I'm using the latest version of firebase BOM 28.4.1.我使用的是最新版本的 firebase BOM 28.4.1。

Is there any walkaround for this?有没有解决方法?

In my case, the fix was to update the crashlytics plugin to the current newest version: 2.7.1就我而言,解决方法是将 crashlytics 插件更新为当前最新版本:2.7.1

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

相关问题 Android Gradle 更新到 Kotlin 1.4 后,构建失败 dexBuilderDebug 任务 - Android Gradle build fails dexBuilderDebug task, after updating to Kotlin 1.4 为 Android 禁用 firebase crashlytics - Disable firebase crashlytics for Android 在 Android 中添加 Firebase Crashlytics 时生成同步错误 - Build sync error while adding Firebase Crashlytics in Android Firebase 崩溃报告在 Firebase crashlytics 更新后未出现在 android 中 - Firebase Crash report not appearing in android after Firebase crashlytics update Firebase Crashlytics - java.lang.IllegalStateException:缺少 Crashlytics 构建 ID - Firebase Crashlytics - java.lang.IllegalStateException: The Crashlytics build ID is missing 如何将 firebase crashlytics 添加到 android 项目中 - How to add firebase crashlytics into android projects 如何在 Firebase Crashlytics Android 中生成 ANR 报告? - How to generate ANR report in Firebase Crashlytics Android? Firebase Crashlytics 不与我的 android 项目同步 - Firebase Crashlytics do not sync with my android project 升级 Android Gradle 插件 7.1 后无法加载 class AndroidComponentsExtension - Unable to load class AndroidComponentsExtension after upgrading the Android Gradle Plugin 7.1 Firebase Crashlytics for Android app without inte.net connection - Firebase Crashlytics for Android app without internet connection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM