Raghav
04/26/2023, 7:25 AMImage(
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)
CRamsan
04/26/2023, 8:53 PMpainterResource
expect the path to a local file, you are sending a URL.