Bit*_*EVS 41 firebase crashlytics crashlytics-android
更新类路径后,我无法再构建应用程序的发布版本。
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.
Run Code Online (Sandbox Code Playgroud)
我试图阅读变更日志,但没有关于它的指南或文档。
RRi*_*VEN 69
要修复它,应该在/app/build.gradle
.
这会产生错误
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'
Run Code Online (Sandbox Code Playgroud)
虽然这不
请注意,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
Run Code Online (Sandbox Code Playgroud)
当您更新到 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.
Run Code Online (Sandbox Code Playgroud)
seb*_*ian 15
确保
'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
应用在:
'com.google.firebase.crashlytics'
Run Code Online (Sandbox Code Playgroud)
为我修复了错误。
我也没有找到任何东西,目前将 firebase-crashlytics-gradle 更改为 2.6.1 似乎可以。
minifyEnabled true
当我在构建中进行测试时,这发生在我身上debug
。
将以下内容添加到我的调试构建类型中解决了我的问题。
firebaseCrashlytics
{
mappingFileUploadEnabled false
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3132 次 |
最近记录: |