Hi, I'm new to Compose Multiplatform. According t...
# multiplatform
a
Hi, I'm new to Compose Multiplatform. According to the official post here: https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html#resource-usage, it seems we can load images from
commonResources/drawable
. Although I've added a new to the folder, I can't seem to find it:
Copy code
Image(
    painter = painterResource(Res.drawable.my_image),
    contentDescription = null
)
v
Hey, first of all, make sure that: 1. You are using
compose-multiplatform
>=
1.6.0
2. You are using the
org.jetbrains.compose.components:components-resources
dependency 3. The folder in which you put the resources is
commonMain/composeResources
4. That you have rebuilt the project since 5. In case you are using
1.6.10
, that you imported the drawable