google / play-services-plugins

Plugins to help with using Google Play services SDK.
https://developers.google.com/android/guides/overview
Apache License 2.0
471 stars 138 forks source link

Execution failed for task ':app:mapDebugSourceSetPaths' #221

Closed muhammadyusuf-kurbonov closed 7 months ago

muhammadyusuf-kurbonov commented 2 years ago

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):

Additional context

rock3r commented 2 years ago

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

ArcherEmiya05 commented 2 years ago

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

EnduringBeta commented 2 years ago

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.

razawiyah commented 1 year ago

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!

pankajnavale24 commented 1 year ago

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.

iamarjun commented 1 year ago

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

Azhar456 commented 1 year ago

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

this thing works for me. Thank you!

brock-cares commented 1 year ago

@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>
kobbyeugene79 commented 1 year ago

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