Status Update
Comments
ag...@google.com <ag...@google.com>
ch...@google.com <ch...@google.com>
ri...@google.com <ri...@google.com> #2
That is a pretty massive apk you have there, is it possible to share a reproduction? if not publicly, then with
an...@adevinta.com <an...@adevinta.com> #3
Unfortunately, I can't share the apk by company security policy. Can I do something else to support us in solving this issue?
Ths apk size warning from the stack trace sound weird because our bundle doesn't reach the 40 Mb with the minify enabled
ri...@google.com <ri...@google.com> #4
Just to be clear, this is due to resource shrinking, not dex shrinking. It might be that the resource shrinker have some bug that will cause it to generate a very large resource table, but it is really hard to speculate about without a repro
an...@adevinta.com <an...@adevinta.com> #5
what do you mean by "reproduction"? Do you need an apk or something else?
an...@adevinta.com <an...@adevinta.com> #6
What do you need to investigate the issue?, so that I can talk with the security team to find a way to share which necessary
ri...@google.com <ri...@google.com> #7
I would need the inputs to the resource shrinker, i.e., the bundle in proto format and the dex code. Chriss would probably know where these are located
cm...@google.com <cm...@google.com> #8
Yeah that error suggests that we're trying to copy a 2.7 GB zip entry to the APK, which suggests something else is broken.
The proto APK input to the linker will be something like <app build dir>/intermediates/linked_res_for_bundle/
<variant>/bundled-res.ap_
The shrunk dex code passed to the will be at something like <app build dir>/intermediates/dex/
<variant>/minify
<Variant>WithR8/
ja...@gopuff.com <ja...@gopuff.com> #9
Yeah that error suggests that we're trying to copy a 2.7 GB zip entry to the APK, which suggests something else is broken.
Could it be a
ri...@google.com <ri...@google.com> #10
re #9 that might very well be, but the reported said that their bundle does not reach 40 MB - fwiw, this is explicitly in writing a non resource file.
Can you check the file sizes in the ap_ file that Chris linked and see if any stand out (if it is not a resource file we will simply copy it through)
ri...@google.com <ri...@google.com> #13
re #12: You could say that it is, but the resource shrinker should not crash on this, so I will fix this in the resource shrinker as well to support very large files
ze...@gmail.com <ze...@gmail.com> #15
I had eactly the same issue, after checking the thread in #9 and using the following code, it's working:
pluginManagement {
buildscript {
repositories {
mavenCentral()
maven {
url = uri("https://storage.googleapis.com/r8-releases/raw")
}
}
dependencies {
classpath("com.android.tools:r8:8.2.29")
}
}
}
an...@google.com <an...@google.com> #16
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 Canary 2
- Android Gradle Plugin 8.3.0-alpha02
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
Hi,
After updated AGP from 8.0.2 to 8.1.0 the release bundle start to fails with the following output: