I have a problem in my KMP project. I would like to use coil to render images but I am currently unable to resolve the lib. I added it in the following places:
libs.versions.toml:
[versions]
coil = "2.6.0"
[libraries]
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
build.gradle.kts (:shared):
androidMain.dependencies {
implementation(libs.coil.compose)
}
Now the project is synced successfully but as soon as i try to use AsyncImage it wont resolve.
this is in my mainActivity:
AsyncImage(
model = "https://fastly.picsum.photos/id/521/200/300.jpg?hmac=_MGlU- tHw5IBlsNL7YvJ9lTMo4Ge605GWQwuKGxWIWU",
contentDescription = null,
)
I can't import AsyncImage, does anyone have an idea what I'm missing?
I tried different versions, cleaning project, resetting caches and restarting
I expect being able to import AsyncImage