Hello there! We’re getting a few crashes with Reso...
# compose
m
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
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
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