-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Labels
Description
If you run appDistributionUploadRelease task with processReleaseGoogleServices in single command, it fails with following error (see bellow)
Used components:
- Gradle 9.2.1
- AGP 8.13.1
- App Distribution plugin 5.2.0
- Google Play services plugin 4.4.4
NOTE: We actually do not run processReleaseGoogleServices explicitly, but instead have another task which depends on it, but here I presented simple reproducer.
% ./gradlew processReleaseGoogleServices appDistributionUploadRelease
> Task :app:appDistributionUploadRelease FAILED
[Incubating] Problems report is available at: file:///Users/user/Projects/DemoApp/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:appDistributionUploadRelease' (type 'UploadDistributionTask').
- Gradle detected a problem with the following location: '/Users/user/Projects/DemoApp/app/build/generated/res/processReleaseGoogleServices'.
Reason: Task ':app:appDistributionUploadRelease' uses this output of task ':app:processReleaseGoogleServices' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':app:processReleaseGoogleServices' as an input of ':app:appDistributionUploadRelease'.
2. Declare an explicit dependency on ':app:processReleaseGoogleServices' from ':app:appDistributionUploadRelease' using Task#dependsOn.
3. Declare an explicit dependency on ':app:processReleaseGoogleServices' from ':app:appDistributionUploadRelease' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/9.2.1/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> Declare task ':app:processReleaseGoogleServices' as an input of ':app:appDistributionUploadRelease'
> Declare an explicit dependency on ':app:processReleaseGoogleServices' from ':app:appDistributionUploadRelease' using Task#dependsOn
> Declare an explicit dependency on ':app:processReleaseGoogleServices' from ':app:appDistributionUploadRelease' using Task#mustRunAfter
> Run with --scan to generate a Build Scan (powered by Develocity).
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 509ms