Status Update
Comments
ch...@google.com <ch...@google.com> #2
Would it be possible for you to share an R8 compiler dump of the build that suffers from this issue? This is a zip file that contains all inputs to the given R8 compilation (the app's Java class files, keep rules, etc.), which allows us to reproduce the given build.
It is possible to generate such a dump by running:
./gradlew assembleRelease --no-daemon -Dcom.android.tools.r8.dumpinputtodirectory=/path/to/dumps
You can share this privately with
ch...@google.com <ch...@google.com> #3
Thanks for sharing a reproduction and for correctly identifying the culprit. A fix is up for review and will be merged to the relevant release branches soon.
ap...@google.com <ap...@google.com> #4
Project: r8
Branch: main
Author: Christoffer Adamsen <
Link:
Reproduce and fix inadequate keeping of Gson <init>s
Expand for full commit details
Reproduce and fix inadequate keeping of Gson <init>s
Fixes: b/394185143
Change-Id: I4657735beffd0b7899323c8b7fba499eee45dfee
Files:
- M
src/main/java/com/android/tools/r8/shaking/ifrules/MaterializedSubsequentRulesOptimizer.java
- A
src/test/java/com/android/tools/r8/shaking/ifrule/IfRuleReductionWithMembersTest.java
Hash: 79108feec75e30472f65e098ce1b5db6ad3a9930
Date: Wed Feb 05 14:16:49 2025
ap...@google.com <ap...@google.com> #5
Project: r8
Branch: 8.8
Author: Christoffer Adamsen <
Link:
Version 8.8.31
Expand for full commit details
Version 8.8.31
Bug: b/394185143
Change-Id: I36c072774b2d068478e653adf5c6fdace449eeb5
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: c43822639e26e541a3175cc3b38e78309f822b75
Date: Wed Feb 05 14:32:40 2025
ap...@google.com <ap...@google.com> #6
Project: r8
Branch: 8.8
Author: Christoffer Adamsen <
Link:
Reproduce and fix inadequate keeping of Gson <init>s
Expand for full commit details
Reproduce and fix inadequate keeping of Gson <init>s
Fixes: b/394185143
Change-Id: I4657735beffd0b7899323c8b7fba499eee45dfee
Files:
- M
src/main/java/com/android/tools/r8/shaking/ifrules/MaterializedSubsequentRulesOptimizer.java
- A
src/test/java/com/android/tools/r8/shaking/ifrule/IfRuleReductionWithMembersTest.java
Hash: 1f1341c669a7f8b446e520c6ef6201a49b90c3e4
Date: Wed Feb 05 14:32:32 2025
ap...@google.com <ap...@google.com> #7
Project: r8
Branch: 8.9
Author: Christoffer Adamsen <
Link:
Reproduce and fix inadequate keeping of Gson <init>s
Expand for full commit details
Reproduce and fix inadequate keeping of Gson <init>s
Fixes: b/394185143
Change-Id: I4657735beffd0b7899323c8b7fba499eee45dfee
Files:
- M
src/main/java/com/android/tools/r8/shaking/ifrules/MaterializedSubsequentRulesOptimizer.java
- A
src/test/java/com/android/tools/r8/shaking/ifrule/IfRuleReductionWithMembersTest.java
Hash: aa453d30de611726dad19eac53181f2ac29237a5
Date: Wed Feb 05 14:31:58 2025
ap...@google.com <ap...@google.com> #8
Project: r8
Branch: 8.9
Author: Christoffer Adamsen <
Link:
Version 8.9.25
Expand for full commit details
Version 8.9.25
Bug: b/394185143
Change-Id: Iffbf27b00445091fdc1f27b4f826b6180fcb5251
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: e9553fdfed74d010e16e0b624a26f3a71d18feba
Date: Wed Feb 05 14:32:06 2025
ap...@google.com <ap...@google.com> #9
Project: r8
Branch: 8.8
Author: Christoffer Adamsen <
Link:
Reproduce and fix inadequate keeping of Gson <init>s
Expand for full commit details
Reproduce and fix inadequate keeping of Gson <init>s
Fixes: b/394185143
Change-Id: I4657735beffd0b7899323c8b7fba499eee45dfee
Files:
- M
src/main/java/com/android/tools/r8/shaking/ifrules/MaterializedSubsequentRulesOptimizer.java
- A
src/test/java/com/android/tools/r8/shaking/ifrule/IfRuleReductionWithMembersTest.java
Hash: 1f1341c669a7f8b446e520c6ef6201a49b90c3e4
Date: Wed Feb 05 14:32:32 2025
ga...@linecorp.com <ga...@linecorp.com> #10
Hello.
I tried to check with this change.
But
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Details>No such object: r8-releases/raw/com/android/tools/r8/8.8.31/r8-8.8.31.pom</Details>
</Error>
ap...@google.com <ap...@google.com> #11
Project: r8
Branch: 8.8
Author: Christoffer Adamsen <
Link:
Version 8.8.32
Expand for full commit details
Version 8.8.32
Bug: b/394185143
Change-Id: I2b4a23b67aabfa2582d2011ce811ac3f8f3fcdb2
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: 2aed3efa54f965c7f02f69ce980e8178f9fd3db9
Date: Thu Feb 06 08:46:34 2025
ch...@google.com <ch...@google.com> #12
Sorry about that, there was an error archiving 8.8.31. Please try with 8.8.32.
an...@google.com <an...@google.com> #13
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 Meerkat | 2024.3.1 RC 2
- Android Gradle Plugin 8.9.0-rc02
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> #14
The fixes for this issue are now also available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Patch 2
- Android Gradle Plugin 8.8.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
op...@gmail.com <op...@gmail.com> #15
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
kop.ruleFiles.put(name, [kop.getDefaultKopFile('kop-android-default.txt'), '
Issue:
java.lang.IllegalStateException: The value for this file collection cannot be changed any further
Description
Gson proguard rules is not working properly after upgrading to AGP 8.8
after a lot of testing, I believe this commit in R8 broke it, causing R8 to remove
<init>()
methodunfortunately, I can not reproduce this bug in a new project
the bug is still occurs in latest commit
5f9f76f286c6ea3cae34de83d8ab8ab9d74d398b