Fixed
Status Update
Comments
lu...@google.com <lu...@google.com> #2
Any update on this? This is a major blocker as we cannot run any androidTest under library projects/modules
iu...@google.com <iu...@google.com> #3
Hi there, thank you for your patience.
Could you please attach a sample project that shows this issue? Or please explain where and how the resource is defined and referenced.
Could you please attach a sample project that shows this issue? Or please explain where and how the resource is defined and referenced.
lu...@google.com <lu...@google.com> #4
Sample project is linked in #1, along with a repro step. Is anything still missing?
sh...@adobe.com <sh...@adobe.com> #5
Ah I missed that, thanks for pointing it out. I'll check it out and keep you updated.
am...@zee.com <am...@zee.com> #6
Hi, any update on this issue?
na...@gtempaccount.com <na...@gtempaccount.com> #7
I understand that this is an old issue and I am just starting to investigate this. Is this still a problem?
lu...@google.com <lu...@google.com> #8
I've just updated sample project dependencies to the latest AGP and Gradle versions and problem still occurs with additional StackOverflow issue.
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).