https://kotlinlang.org logo
#compose
Title
# compose
m

Michał Diner

05/18/2022, 9:09 AM
Hello there! We’re getting a few crashes with ResourcesNotFoundException:
Copy code
Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID #0x7f08024a
       at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:215)
       at android.content.res.Resources.getValue(Resources.java:1316)
       at androidx.compose.ui.res.PainterResources_androidKt.painterResource(PainterResources_androidKt.java:61)
       at x.x.x.presentation.x.ComposableSingletons$xKt$lambda-1$1.invoke(x.kt:66)
       at x.x.x.presentation.x.ComposableSingletons$xKt$lambda-1$1.invoke(x.kt:40)
It’s a simple usage of Image with
painterResource
. Any ideas? 😬
a

Adam Powell

05/18/2022, 1:50 PM
This is probably a better question for #android
Make sure that you aren't missing a version of that resource for whatever configuration you're running in, e.g. if you have a
drawable-foo/my_resource
but not a
drawable/my_resource
j

jasu

05/20/2022, 4:48 AM
Something of this sort is happening with me too I’m addding new string resource then I run the project that. string res will not be included in the build and I’ll get resNotFound exception as yours. This is huge headache
27 Views