Fixed
Status Update
Comments
lu...@google.com <lu...@google.com> #2
Regarding comment 1, reverting to the 'old' resource shrinker doesn't fix the issue as resource shrinking was not supported for multi-apk apps until the new resource shrinker was enabled.
iu...@google.com <iu...@google.com> #3
Can you share the code to reproduce the issue?
lu...@google.com <lu...@google.com> #4
Sure, here's an attached project.
sh...@adobe.com <sh...@adobe.com> #5
Is there any update on this? We also face the same issue in Acrobat.
am...@zee.com <am...@zee.com> #6
Is there any update on this? We also facing the same issue in Zee5 while installing main apk with minifyEnabled true
shrinkResources true
shrinkResources true
na...@gtempaccount.com <na...@gtempaccount.com> #7
Is there any update on this?
lu...@google.com <lu...@google.com> #8
A change has been submitted to fix the issue scheduled to be included in AGP 8.0 canary 4.
sh...@adobe.com <sh...@adobe.com> #9
Thanks. Will this be part of any of the 7.3.* releases as well?
ab...@gmail.com <ab...@gmail.com> #10
Comment has been deleted.
ju...@gmail.com <ju...@gmail.com> #11
Any solution now?
I have this problem too.
I have this problem too.
ki...@gmail.com <ki...@gmail.com> #12
End of 2024 and I face this issue
lu...@google.com <lu...@google.com> #13
#12 Please provide us the Studio and AGP versions your project is using that is experiencing this issue. Also a attach a copy of the device stacktrace.
dh...@gmail.com <dh...@gmail.com> #14
I can help #12 to provide the information for #13
Studio : Android Studio Koala Feature Drop | 2024.1.2 Beta 2
AGP versions : 8.5.2
Device stacktrace :
Coroutine error
android.content.res.Resources$NotFoundException: Resource ID #0x7d010004androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:508)
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:254)
android.content.res.Resources$NotFoundException: Plural resource ID #0x7d070005 quantity=4714 item=other
at android.content.res.ResourcesImpl.getQuantityText(ResourcesImpl.java:332)
android.content.res.Resources$NotFoundException: String resource ID #0x7d0800e4
at android.content.res.Resources.getText(Resources.java:360)
Studio : Android Studio Koala Feature Drop | 2024.1.2 Beta 2
AGP versions : 8.5.2
Device stacktrace :
Coroutine error
android.content.res.Resources$NotFoundException: Resource ID #0x7d010004androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:508)
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:254)
android.content.res.Resources$NotFoundException: Plural resource ID #0x7d070005 quantity=4714 item=other
at android.content.res.ResourcesImpl.getQuantityText(ResourcesImpl.java:332)
android.content.res.Resources$NotFoundException: String resource ID #0x7d0800e4
at android.content.res.Resources.getText(Resources.java:360)
Description
To reproduce:
Sample Runtime exception:
The issue is present both the old and new resource shrinkers. So this issue doesn't appear to be related to b/237783271 as that particular issue isn't present in the old resource shrinker.
The resource that is being reported as
android.content.res.Resources$NotFoundException
exists within the APK's resource table and as a file, however the contents are shrunk (empty tag xml file). In the repro case the drawable resource is declared and by an app compat library called by the MainActivity in the app (base module).