Hi guys I'm trying to load Images with the Image C...
# multiplatform
r
Hi guys I'm trying to load Images with the Image Composable on both my Target platforms which are Android and iOS this is the Image Composable in my shared code
Copy code
Image(
    painter = item.backdropPath?.let {
        painterResource(it)
    } ?: painterResource(""),
    contentDescription = null
)
but my app is crashing at runtime, Is there an issue while using Image Composable on KMM?
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
Caused by: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: <https://image.tmdb.org/t/p/w500/u7l5ggfgPQLbgxyROwxgz8gTO77.jpg>
at org.jetbrains.compose.resources.AndroidResourceImpl.readBytes(Resource.android.kt:21) at org.jetbrains.compose.resources.Resource_commonbutjsKt$readBytesSync$1.invokeSuspend(Resource.commonbutjs.kt:13) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
c
painterResource
expect the path to a local file, you are sending a URL.