Status Update
Comments
ch...@google.com <ch...@google.com>
je...@google.com <je...@google.com>
hu...@google.com <hu...@google.com> #2
Thanks a lot for the sample project!
This looks like a Gradle bug, I've filed
In the mean time, we'll try to come up with a fix/workaround in AGP.
bi...@google.com <bi...@google.com> #3
Just curious, does it happen for older Gradle versions?
hu...@google.com <hu...@google.com> #4
Yes, it happens for all Gradle versions (as long as it's larger than the minimum required by AGP). Regarding AGP version, it happens on AGP 8.3+, not on AGP 8.2.
Note that the issue happens only if the user runs ./gradlew assemble
(it doesn't happen if they run ./gradlew assembleDebug
or ./gradlew assembleRelease
individually).
So the current workarounds include:
- Building the 2 variants separately:
./gradlew assembleDebug && ./gradlew assembleRelease
instead of./gradlew assemble
- Making the build single-threaded:
./gradlew assemble --max-workers=1
hu...@google.com <hu...@google.com> #5
Another workaround is to enable configuration cache, if that works for your project, that would be the best workaround so far:
- Enable configuration cache:
./gradlew assemble --configuration-cache
hu...@google.com <hu...@google.com> #6
We've added a workaround in AGP to avoid this issue (by removing relevant usages of
It will be included in AGP 8.3.2, 8.4.0-rc01, and 8.5.0-alpha04.
Thank you for this report!
hu...@google.com <hu...@google.com> #7
The cherrypicked commit for AGP 8.3.2 is being reviewed, keeping this bug open for a little longer until that commit gets merged.
hu...@google.com <hu...@google.com>
an...@google.com <an...@google.com> #8
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 Iguana | 2023.2.1 Patch 2
- Android Gradle Plugin 8.3.2
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!
[Deleted User] <[Deleted User]> #9
[Deleted User] <[Deleted User]> #10
mi...@mikehardy.net <mi...@mikehardy.net> #11
hu...@google.com <hu...@google.com> #12
Great to hear, thanks for your confirmation!
Description
In a gradle multi module project with an app and a library a deadlock
happens if you call gradle assemble the second time. The library
project must be included in the app. When you enable desugaring in the
application and now call gradle assemble wait till it is finished
and call it again the gradle build hangs with "Configuring projects".
This worked fine with AGP 8.2.0
I have attached a test project and a threaddump
STEPS TO REPRODUCE:
1. use the testproject in the attachment
2. call gradle assemble wait till it is finished
3. call gradle assemble again. Gradle hangs with Configuring projects
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: #AI-232.10227.8.2321.11479570, built on February 21, 2024
Version of Gradle Plugin: 8.3.0
Version of Gradle: 8.6
Version of Java: 17
OS: Windows 10