Repository navigation
Not able to use Coil library in Android View project with mixed Java-Kotlin code #3013
Answered
by
colinrtwhite
nerocristallo
asked this question in
Q&A
|
I am trying to use the Coil image loading library in an Android View project with mixed Java-Kotlin source code. I am following this guide: https://coil-kt.github.io/coil/java_compatibility/ I have added the library to my gradle app file: However, the compiler raises an incompatible types error in the following Java code. and in the following one the compiler is not able to find any ImageLoaders at all Am I missing anything? |
Answered by
colinrtwhite
Jun 30, 2025
Replies: 1 comment 4 replies
|
You're missing |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're right sorry this looks like a bug. During the migration to Coil 3.x and multiplatform, the file was renamed. It's currently accessible via
ImageLoaders_nonJsCommonKt.executeBlocking, but I'll fix it in the next version to restore theImageLoaders.executeBlockingsyntax.