Status Update
Comments
rk...@google.com <rk...@google.com>
je...@google.com <je...@google.com>
ch...@gmail.com <ch...@gmail.com> #2
Running into this same issue using AGP 8.4.1
.
In my case
je...@google.com <je...@google.com> #3
I believe this gradle issue
We have already raised the importance to Gradle so we are now waiting for an update from them.
to...@gmail.com <to...@gmail.com> #4
I just upgraded to Gradle 8.9-rc-1 which should fix this issue and it still happening :-(
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':library-collector:generateDebugAndroidTestLintModel' (type 'LintModelWriterTask').
- Gradle detected a problem with the following location: '/home/tcagent/.buildAgent/work/avast-android-feedback/library-collector/build/generated/res/android-junit5/debugAndroidTest'.
Reason: Task ':library-collector:generateDebugAndroidTestLintModel' uses this output of task ':library-collector:writeFiltersDebugAndroidTest' 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 ':library-collector:writeFiltersDebugAndroidTest' as an input of ':library-collector:generateDebugAndroidTestLintModel'.
2. Declare an explicit dependency on ':library-collector:writeFiltersDebugAndroidTest' from ':library-collector:generateDebugAndroidTestLintModel' using Task#dependsOn.
3. Declare an explicit dependency on ':library-collector:writeFiltersDebugAndroidTest' from ':library-collector:generateDebugAndroidTestLintModel' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.9-rc-1/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
je...@google.com <je...@google.com>
sp...@google.com <sp...@google.com> #5
This has been fixed in AGP 8.7.0-alpha01 with
Leaving this bug open to consider cherry-picking the fix to previous versions.
sp...@google.com <sp...@google.com> #6
The fix has been cherry-picked to AGP 8.6.0-rc01, but there's no plan to cherry-pick it to previous AGPs.
an...@google.com <an...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug | 2024.1.3 Canary 1
- Android Gradle Plugin 8.7.0-alpha01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
an...@google.com <an...@google.com> #8
The fixes for this issue are now also available in:
- Android Studio Koala Feature Drop | 2024.1.2 Beta 2
- Android Gradle Plugin 8.6.0-beta02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
DESCRIBE THE ISSUE IN DETAIL:
STEPS TO REPRODUCE:
ANDROIDX_PROJECTS=compose ./busytown/androidx.sh
It only repros on a clean build, no build cache.
Note this project adds resources through a deprecated BaseVariant API , so potentially that is the cause for this.