作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
更新类路径后,我无法再构建应用程序的发布版本。
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').
- Type 'UploadMappingFileTask' property 'googleServicesResourceRoot' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'googleServicesResourceRoot'.
2. Mark property 'googleServicesResourceRoot' as optional.
A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').
- Type 'UploadMappingFileTask' property 'googleServicesResourceRoot' doesn't have a configured value.
我试图阅读变更日志,但没有关于它的指南或文档。
最佳答案
要修复它,应该在 /app/build.gradle
中的任何 Firebase 插件之前应用 Google 服务插件.
这会产生错误
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.firebase-perf'
虽然这不
com.google.gms.google-services
是
上图
com.google.firebase.crashlytics
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.firebase.firebase-perf
当您更新到 com.google.firebase:firebase-crashlytics-gradle:2.7.0 并同步更改时,您会收到一条消息,说明已修复。
Configure project :app
Crashlytics could not find Google Services plugin task: processReleaseGoogleServices. Make sure com.google.gms.google-services is applied BEFORE com.google.firebase.crashlytics. If you are not using the Google Services plugin, you must explicitly declare `googleServicesResourceRoot` inputs for Crashlytics upload tasks.
关于firebase - 类型 'UploadMappingFileTask' 属性 'googleServicesResourceRoot' 没有配置值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67865303/
更新类路径后,我无法再构建应用程序的发布版本。 FAILURE: Build failed with an exception. * What went wrong: A problem was fo
我是一名优秀的程序员,十分优秀!