google/play-services-plugins

Execution failed for task ':app:mapDebugSourceSetPaths'

muhammadyusuf-kurbonov opened this issue · 9 comments

Describe the bug

Execution failed for task ':app:mapDebugSourceSetPaths'.
> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'
   > Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
      > Querying the mapped value of provider(interface java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

To Reproduce
Steps to reproduce the behavior:

  1. Open Android Project on Android Studio Dolphin Canary 7
  2. Add Firebase dependencies (or apply google-services-gradle-plugin)
  3. Start rebuild
  4. See an error

Expected behavior
Successful build

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Gradle version: 7.4
  • Android Studio version: 2021.3.1 Canary 7
  • Plugin name and version: com.google.gms.google-services version 4.3.10

Additional context

Same happens to me after upgrading AGP [7.3.0-alpha04 -> 7.3.0-alpha08] and Gradle [7.4 -> 7.4.2]. You can easily repro the issue by checking out this repo at commit 9785bbd.

ℹ️ The temporary workaround is to downgrade the google-services plugin to 4.3.5

Is there any update on this? The last update for the plugin was last year August

I'm wandering in from a stray Google search of this error. I'm not sure if it's relevant, but StackOverflow has an answer:

Bump 4.3.10 -> 4.3.14.

I'm wandering in from a stray Google search of this error. I'm not sure if it's relevant, but StackOverflow has an answer:

Bump 4.3.10 -> 4.3.14.

this one works for me. thank you!

The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.4.1.
Android SDK Build Tools 30.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

facing this again with agp 7.4.2, gradle 7.5 and google-services 4.3.15

facing this again with agp 7.4.2, gradle 7.5 and google-services 4.3.15

this thing works for me. Thank you!

@iamarjun I had to drop google-services back down to 4.3.14 manually to make it work again (I'm using Cordova):

<platform name="android">
        <allow-intent href="market:*" />
        ...
        <preference name="GradlePluginGoogleServicesEnabled" value="true" />
        <preference name="GradlePluginGoogleServicesVersion" value="4.3.14" />
</platform>

I'm wandering in from a stray Google search of this error. I'm not sure if it's relevant, but StackOverflow has an answer:

Bump 4.3.10 -> 4.3.14.

Worked for me