簡體   English   中英

Firebase 將 android gradle 插件更新到 7.0.2 后,crashlytics 構建失敗

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

我正在開發多口味 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

我使用的是最新版本的 firebase BOM 28.4.1。

有沒有解決方法?

就我而言,解決方法是將 crashlytics 插件更新為當前最新版本:2.7.1

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM