A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask'). - Type 'UploadMappingFileTask' property 'googleServicesResourceRoot' doesn't have a configured value.

See original GitHub issue

After updating to classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.0'

A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').
  - Type 'UploadMappingFileTask' property 'googleServicesResourceRoot' doesn't have a configured value.
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.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#value_not_set for more details about this problem.

I tried to read the documentation and changelog, however none of them help on how to fix the problem.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:16
  • Comments:31 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
dmessanocommented, Jun 16, 2021

Found a fix for me. AS 4.2.1Buld May 10,2021 Gradle Plugin 4.2.1 Gradle Version 7.1 com.google.firebase:firebase-crashlytics-gradle:2.7.0

This produces the error

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'

While this does not, note com.google.gms.google-services is now ABOVE 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'

When you update to com.google.firebase:firebase-crashlytics-gradle:2.7.0 and sync the changes with them in the wrong order you are given an message stating that is the fix.

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.```
2reactions
peterhavcommented, Jun 21, 2021

Thanks, that worked. I now have:

plugins {
    ....
    id 'com.google.gms.google-services'
    id 'com.google.firebase.crashlytics'
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Task :app:uploadCrashlyticsMappingFileRelease FAILED ...
A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask'). > No value has ...
Read more >
Task :app:uploadCrashlyticsMappingFileRelease FAILED ...
Android : Task :app:uploadCrashlyticsMappingFileRelease FAILED Expected file collection to contain exactly one file, however, it contains no ...
Read more >
a problem was found with the configuration of task - You.com
version-check' type 'com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask' property 'androidJarInput.androidJar' specifies file '/Users/ ...
Read more >
Firebase Android SDK Release Notes - Google
You can now use the Kotlin DSL to configure the App Distribution properties with multiple build variants (build types and product flavors) by...
Read more >
Logging Ad Response ID with Firebase Crashlytics | Android
Later, when you troubleshoot crashes in your app, you can look up the ad response ID and use the Ad Review Center in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found