I am trying to import the coil image library inside a composable function using import coil.compose.AsyncImage
and implementation("io.coil-kt:coil:2.2.2")
but Android Studio can't recognize the 'compose' and returns
Unresolved reference: compose
I tried to invalidate the caches and clean the project with no change happened I use Android Studio Dolphin | 2021.3.1 where:
compose_ui_version = '1.2.1'
composeOptions {
kotlinCompilerExtensionVersion '1.3.1'
}
compileSdk 33
gradle 7.4
implementation("io.coil-kt:coil-compose:2.2.2")
in yourapp/build.gradle
? – Starfish