Have there been any changes or considerations when...
# compose-desktop
s
Have there been any changes or considerations when adding a dependency to a compose-desktop app? i'm trying to add the dependency
Copy code
implementation("dev.chrisbanes.accompanist:accompanist-coil:0.4.2")
from the mavenCentral() repository. I can see that this file is there on maven central but i get:
Copy code
CCould not resolve dev.chrisbanes.accompanist:accompanist-coil:0.4.2.
Required by:
    project :

Possible solution:
 - Declare repository providing the artifact
maybe it's my intellij? I can't seem to resolve any dependencies...
s
Edit: the coil dependency only accessible for android projects
s
thanks @stumi. that's what i've also concluded. i'm not really sure how to find compatible dependencies. If i want to add features am i limited to kotlin native? i assume the actual problem is using libraries that have android dependencies.
s
well for compose desktop you are basically creating a JVM project so every dependency which has a JVM target should work (there are plenty of those) I usually check the https://github.com/AAkira/Kotlin-Multiplatform-Libraries libs first because my targets are mobile + desktop at this moment so i need plenty of support 😄 but if you are only working with dektop app you are in a better place.
🙌 1
s
brilliant, thanks.