Status Update
Comments
es...@google.com <es...@google.com>
cm...@google.com <cm...@google.com>
hu...@google.com <hu...@google.com> #2
hu...@google.com <hu...@google.com> #4
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 | 2024.1.1 Canary 8
- Android Gradle Plugin 8.5.0-alpha08
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!
ch...@google.com <ch...@google.com>
ap...@google.com <ap...@google.com> #6
Branch: main
commit 7803ec93afef8bf1047eaf8f209fdbe81bdbd581
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 08:39:10 2024
Reproduce IAE from instance field merging
Bug:
Change-Id: I0614da65d0a60f7f2d01d6a8aa92b9cadfabe005
A src/test/java/com/android/tools/r8/classmerging/horizontal/InaccessibleFieldTypeMergingTest.java
A src/test/java/com/android/tools/r8/classmerging/horizontal/testclasses/InaccessibleFieldTypeMergingTestClasses.java
ap...@google.com <ap...@google.com> #7
Branch: main
commit 9ea42409d593d89dce0184f00728ccd46ba5e7a3
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 12:48:42 2024
Disallow class merging when instance field merging may lead to IAE
Bug:
Change-Id: I521dc342150e8374992dd453379915e8a5e36db8
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
M src/test/java/com/android/tools/r8/classmerging/horizontal/InaccessibleFieldTypeMergingTest.java
ap...@google.com <ap...@google.com> #8
Branch: 8.5
commit e58b343a1aa4631008946e21ca3d00a8f151ae5e
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 13:38:13 2024
Disallow class merging when instance field merging may lead to IAE
Bug:
Change-Id: I521dc342150e8374992dd453379915e8a5e36db8
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
M src/test/java/com/android/tools/r8/classmerging/horizontal/InaccessibleFieldTypeMergingTest.java
ap...@google.com <ap...@google.com> #9
Branch: 8.5
commit fe6ed811fc69f65b9cb62a4279b62f03d1cd1715
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 13:38:23 2024
Version 8.5.31
Bug:
Change-Id: I1b2ece43a23b871c99d9cb8b70c29c50468752bb
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #10
Branch: 8.5
commit b5bc5b7266a51184e0ca97e6e9342766e51b8a1d
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 13:37:59 2024
Reproduce IAE from instance field merging
Bug:
Change-Id: I0614da65d0a60f7f2d01d6a8aa92b9cadfabe005
A src/test/java/com/android/tools/r8/classmerging/horizontal/InaccessibleFieldTypeMergingTest.java
A src/test/java/com/android/tools/r8/classmerging/horizontal/testclasses/InaccessibleFieldTypeMergingTestClasses.java
ap...@google.com <ap...@google.com> #11
Branch: 8.4
commit 4c848f3563562011b284484a2f60c0f0a4a020d1
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 13:42:06 2024
Version 8.4.42
Bug:
Change-Id: I5239ceba9bd57249447ef5f140f8122924d5513a
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #12
Branch: 8.4
commit b4c22c95d196d99507fa9c6fea954cf5f215662c
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 13:41:52 2024
Disallow class merging when instance field merging may lead to IAE
Bug:
Change-Id: I521dc342150e8374992dd453379915e8a5e36db8
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
M src/test/java/com/android/tools/r8/classmerging/horizontal/InaccessibleFieldTypeMergingTest.java
ap...@google.com <ap...@google.com> #13
Branch: 8.4
commit 1acc8c9b4646032a05e9814509cb01ff18b0a72e
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Fri Jun 28 13:39:29 2024
Reproduce IAE from instance field merging
Bug:
Change-Id: I0614da65d0a60f7f2d01d6a8aa92b9cadfabe005
A src/test/java/com/android/tools/r8/classmerging/horizontal/InaccessibleFieldTypeMergingTest.java
A src/test/java/com/android/tools/r8/classmerging/horizontal/testclasses/InaccessibleFieldTypeMergingTestClasses.java
ch...@google.com <ch...@google.com> #14
This should now be fixed in R8 8.4.42 and 8.5.31.
ys...@gmail.com <ys...@gmail.com> #15
I am sorry to say that the IllegalAccessError still exists in TestGradleBug, using either R8 8.4.42 or 8.5.31.
ch...@google.com <ch...@google.com>
ap...@google.com <ap...@google.com> #16
Branch: 8.4
commit f550fa0f75062c1c92ab0667b709bb16337eb12f
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Tue Jul 02 09:18:30 2024
Analyze all field accesses for limited horizontal class merging
Bug:
Change-Id: If1dc4510124582233df02d6b4c2595f34eee2fd5
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
ap...@google.com <ap...@google.com> #17
Branch: 8.5
commit 2c668659d72b47931c6e6e4091db567894f78a1b
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Tue Jul 02 09:16:52 2024
Analyze all field accesses for limited horizontal class merging
Bug:
Change-Id: If1dc4510124582233df02d6b4c2595f34eee2fd5
M src/main/java/com/android/tools/r8/shaking/Enqueuer.java
ap...@google.com <ap...@google.com> #18
Branch: 8.5
commit e606d91cdeba3ac6522fd28540e2d3b32d1bf905
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Tue Jul 02 09:17:02 2024
Version 8.5.32
Bug:
Change-Id: I472a5f30932516a2e2d3b0cc4488492f56d140c6
M src/main/java/com/android/tools/r8/Version.java
ch...@google.com <ch...@google.com> #19
Sorry, and thanks for the feedback! This should be fixed in R8 8.4.43 and R8 8.5.32. It would be great if you can confirm whether this works for you. Thanks!
ys...@gmail.com <ys...@gmail.com> #20
Both R8 8.4.43 and R8 8.5.32 work for me. Thanks!
ch...@google.com <ch...@google.com>
an...@google.com <an...@google.com> #21
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 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.
Thank you for taking the time to submit feedback — we really appreciate it!
ys...@gmail.com <ys...@gmail.com> #22
Android Gradle Plugin 8.6.0-beta02 works for me. Thanks!
an...@google.com <an...@google.com> #23
The fixes for this issue are now also available in:
- Android Studio Koala | 2024.1.1 Patch 2
- Android Gradle Plugin 8.5.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
ys...@gmail.com <ys...@gmail.com> #24
Android Gradle Plugin 8.5.2 works for me. Thanks!
Description
The release build of a Wear OS app with ongoing activity may cause java.lang.IllegalAccessError, if built with Gradle Plugin 8.4.0/
STEPS TO REPRODUCE:
1. Download the attached project.
2. Build the app using assembleRelease.
3. Install the APK into a Wear OS emulator with API 33.
4. Tap the "Start" button.
5. The app will crash with the error:
java.lang.IllegalAccessError: Illegal class access: 'com.example.testgradlebug.MyService' attempting to access 'androidx.wear.ongoing.OngoingActivityData' ...
The error will not occur if change the following line in gradle/libs.versions.toml:
agp = "8.5.0"
to:
agp = "8.3.0"
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: AI-241.15989.150.2411.11948838, built on June 11, 2024
Version of Gradle Plugin: 8.5.0
Version of Gradle: 8.7
Version of Java: 17.0.10+0-17.0.10b1087.21-11609105 aarch64
OS: