Status Update
Comments
yo...@gmail.com <yo...@gmail.com> #2
Any plans to support this?
pr...@gmail.com <pr...@gmail.com> #3
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.material3:material3-adaptive-navigation-suite:1.4.0-alpha07
androidx.compose.material3:material3-adaptive-navigation-suite-android:1.4.0-alpha07
th...@gmail.com <th...@gmail.com> #4
We're facing the same issue. Tested with AGP 8.5.1, 8.6.0-rc01 and 8.7.0-alpha05 and I always have the same exception.
th...@gmail.com <th...@gmail.com> #5
Also tested with "8.4.1" and got the same error.
pr...@gmail.com <pr...@gmail.com> #6
for me 8.4.2 works fine
sg...@google.com <sg...@google.com> #7
Retraced stack trace of stack trace in
Caused by: java.util.ConcurrentModificationException
at com.android.tools.r8.shaking.Enqueuer.processDeferredAnnotations(Enqueuer.java:2346)
at com.android.tools.r8.shaking.Enqueuer.trace(Enqueuer.java:4737)
at com.android.tools.r8.shaking.Enqueuer.traceApplication(Enqueuer.java:3896)
at com.android.tools.r8.R8.runEnqueuer(R8.java:1153)
at com.android.tools.r8.R8.run(R8.java:387)
at com.android.tools.r8.R8.run(R8.java:251)
at com.android.tools.r8.R8.lambda$runForTesting$1(R8.java:242)
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:80)
The exception is from liveAnnotations
can break as processAnnotation
updates liveAnnotations
in some cases.
As far as I can see the change updating liveAnnotations
while iterating over them is
ch...@google.com <ch...@google.com>
sg...@google.com <sg...@google.com> #8
Bisected using
git clone git@github.com:SelvinPL/SyncFrameworkAndroid.git
git checkout 1.5.12
./gradlew assembleRelease --stacktrace --no-configuration-cache
The issue was introduced in
ap...@google.com <ap...@google.com> #9
Branch: main
commit f6c503a028ac90e2c52df79f034063ba4bafe55c
Author: Søren Gjesse <sgjesse@google.com>
Date: Thu Aug 15 14:28:20 2024
Fix java.util.ConcurrentModificationException
Fixes:
Change-Id: Ib59bed89294d831e26ae9e6e4e3b2aa63406958a
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
A src/test/java/com/android/tools/r8/annotations/NestedAnnotationsUnusedTest.java
A src/test/java/com/android/tools/r8/annotations/NestedAnnotationsUsedTest.java
ap...@google.com <ap...@google.com> #10
Branch: 8.5
commit 9e9d23a4c9aec8dcbabc394347a809ce3415db65
Author: Søren Gjesse <sgjesse@google.com>
Date: Thu Aug 15 15:44:00 2024
Version 8.5.41
Bug:
Change-Id: I08533b7b57bfd1fe0d06d3d2cdebd1a9424e949d
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #11
Branch: 8.5
commit c8ac09c8a408171ae438989d32817ac58f24b8f7
Author: Søren Gjesse <sgjesse@google.com>
Date: Thu Aug 15 15:43:44 2024
Fix java.util.ConcurrentModificationException
Fixes:
Change-Id: Ib59bed89294d831e26ae9e6e4e3b2aa63406958a
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
A src/test/java/com/android/tools/r8/annotations/NestedAnnotationsUnusedTest.java
A src/test/java/com/android/tools/r8/annotations/NestedAnnotationsUsedTest.java
ap...@google.com <ap...@google.com> #12
Branch: 8.6
commit b094951dc20f25541e696511bce1c35dee7fd639
Author: Søren Gjesse <sgjesse@google.com>
Date: Thu Aug 15 15:43:06 2024
Version 8.6.24
Bug:
Change-Id: I65e46ae214e4b788628eec6cec36d152a03997fe
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #13
Branch: 8.6
commit d6058fde773d135ade972df5e70cb9226537fe11
Author: Søren Gjesse <sgjesse@google.com>
Date: Thu Aug 15 15:42:51 2024
Fix java.util.ConcurrentModificationException
Fixes:
Change-Id: Ib59bed89294d831e26ae9e6e4e3b2aa63406958a
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
A src/test/java/com/android/tools/r8/annotations/NestedAnnotationsUnusedTest.java
A src/test/java/com/android/tools/r8/annotations/NestedAnnotationsUsedTest.java
sg...@google.com <sg...@google.com> #14
The issue has been fixed. You can use R8 8.5.41 with AGP 8.5.2 using the following patch:
diff --git a/settings.gradle b/settings.gradle
index fbba233..9b89dcb 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,4 +1,15 @@
pluginManagement {
+ buildscript {
+ repositories {
+ mavenCentral()
+ maven {
+ url = uri("https://storage.googleapis.com/r8-releases/raw")
+ }
+ }
+ dependencies {
+ classpath("com.android.tools:r8:8.5.41")
+ }
+ }
repositories {
google {
content {
When switching to AGP 8.6.0 please use R8 8.6.24 as this fix most likely will not go into AGP until 8.6.1.
an...@google.com <an...@google.com> #15
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 Koala Feature Drop | 2024.1.2 Patch 1
- Android Gradle Plugin 8.6.1
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!
Description
with AGP 8.5.0 (also 8.5.1 and 8.5.2) i'm getting
project affectedhttps://github.com/SelvinPL/SyncFrameworkAndroid/tree/1.5.12
problem seems to only appear on Windows
Full stacktrace: