Status Update
Comments
xi...@google.com <xi...@google.com>
ss...@gmail.com <ss...@gmail.com> #2
No error occurs when compile, but when run the app, the crash will happen
ss...@gmail.com <ss...@gmail.com> #3
Project: r8
Branch: main
Author: Christoffer Adamsen <
Link:
Revert "Optimize empty Object[] -> null in reflection APIs"
Expand for full commit details
Revert "Optimize empty Object[] -> null in reflection APIs"
This reverts commit b2baa96841919a9fd14102c652f2b881fb77aa15.
Reason for revert: Causes verification errors, b/395140848
Bug: b/395140848
Change-Id: I6a3311a56443f911d0179a7a40772201fb3e687a
Files:
- D
src/main/java/com/android/tools/r8/ir/optimize/library/ClassOptimizer.java
- D
src/main/java/com/android/tools/r8/ir/optimize/library/ConstructorOptimizer.java
- D
src/main/java/com/android/tools/r8/ir/optimize/library/EmptyVarargsUtil.java
- M
src/main/java/com/android/tools/r8/ir/optimize/library/LibraryMemberOptimizer.java
- D
src/main/java/com/android/tools/r8/ir/optimize/library/MethodOptimizer.java
- M
src/test/java/com/android/tools/r8/ir/optimize/library/EmptyVarargsTest.java
Hash: 29f1b9c5d00148c170a67c8b1fa566a1a701bee6
Date: Tue Feb 11 12:02:13 2025
ss...@gmail.com <ss...@gmail.com> #4
Is there any specified r8 version to use for verifying this bug?
ss...@gmail.com <ss...@gmail.com> #5
Thanks for sharing the reproduction offline. As you have maybe seen we have identified and reverted the culprit. This should be cherry-picked to the R8 8.7, 8.8, and 8.9 release branches later today.
If you are using R8 8.7, then you should update to R8 8.7.33.
je...@google.com <je...@google.com>
mi...@google.com <mi...@google.com> #6
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> #7
we test R8 8.7.33(R8Version: 8.7.33 (build 33ee25f5b92c38712b4dfc47955285bc4396db5e from go/r8bot (luci-r8-custom-ci-archive-0-bok9))), crash from this method fixed, but there are other similar java.lang.VerifyError [0x430] copy1 v2<-v264 type=Undefined cat=3 in that same class, but from different method.
Description
We are building a App Bundle and want
lintVitalRelease
to be executed during the build process. The task runs during APK builds with theassembleRelease
task, but it doesn’t run during app bundle builds.For me,
assembleRelease
and bundleRelease are essentially about the same thing – building a complete product ready for publishing in Google Play. Therefore, we’d like the lint to run during bundle builds just as it does during APK builds.STEPS TO REPRODUCE:
./gradlew :app:bundleProdRelease
inVersion of Gradle Plugin: 8.7.1 Version of Gradle: 8.10.2