3

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.

1 Answer 1

7

You have to add the dependency:

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

Then you can import:

import coil.compose.AsyncImage
3
  • I'm not sure I follow, but I said that I've done this and no luck. compose is not found
    – Robert
    Commented Dec 23, 2022 at 19:46
  • 2
    in your question you implemented the wrong library implementation('io.coil-kt:coil:2.2.2') , you need to add implementation("io.coil-kt:coil-compose:2.2.2") with -compose Commented Dec 23, 2022 at 19:46
  • 1
    Please refer to coil-kt.github.io/coil/compose Commented Dec 23, 2022 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.