Hi! I’m trying to include the Coil-Library in my t...
# compose-desktop
f
Hi! I’m trying to include the Coil-Library in my test project: I’ve added the following line to my build script:
Copy code
implementation("io.coil-kt:coil:1.3.2")
But then I build i I get the following error message(s):
Could not resolve all files for configuration ‘:compileClasspath’.
> Could not resolve io.coil-ktcoil1.3.2. Required by: project : > No matching variant of io.coil-ktcoil1.3.2 was found. The consumer was configured to find an API of a library compatible with Java 15, Any ideas how to solve this?
o
Seems like the version you are looking for is not available in the repositories you have defined. I could find this one via IntelliJ IDEA Dependencies:
Copy code
implementation("io.coil-kt:coil:1.3.1")
f
No the version is available but somehow it doesn’t work with Compose Desktop
Because it is a AAR
o
Have you tried 1.3.1?
f
yes
No matching variant of io.coil-ktcoil1.3.1 was found. The consumer was configured to find an API of a library compatible with Java 15, preferably in the form of class files, and its dependencies declared externally, as well as attribute ‘org.jetbrains.kotlin.platform.type’ with value ‘jvm’ but: - Variant ‘releaseApiPublication’ capability io.coil-ktcoil1.3.1 declares an API of a library, and its dependencies declared externally: - Incompatible because this component declares a component, with the library elements ‘aar’ and the consumer needed a component, preferably in the form of class files - Other compatible attributes: - Doesn’t say anything about its target Java version (required compatibility with Java 15) - Doesn’t say anything about org.jetbrains.kotlin.platform.type (required ‘jvm’) - Variant ‘releaseRuntimePublication’ capability io.coil-ktcoil1.3.1 declares a runtime of a library, and its dependencies declared externally: - Incompatible because this component declares a component, with the library elements ‘aar’ and the consumer needed a component, preferably in the form of class files - Other compatible attributes: - Doesn’t say anything about its target Java version (required compatibility with Java 15) - Doesn’t say anything about org.jetbrains.kotlin.platform.type (required ‘jvm’)
o
Did not know about Coil before. As the doc says "An image loading library for Android" it seems pretty clear that there's no way on desktop.
a
You can checkout Kamel. It works for both android and desktop.