Search code examples
androidandroid-jetpack-composecoil

Coil AsyncImage not resolving


I have not been able to get Coil to resolve for me. I've added the implementation to my gradle

implementation('io.coil-kt:coil:2.2.2')

I've added

import coil.* and I've tried import coil.compose.AsyncImage and neither have proven to be successful.


Solution

  • You have to add the dependency:

    implementation("io.coil-kt:coil-compose:2.2.2")
    

    Then you can import:

    import coil.compose.AsyncImage