I've had some users mention that they get an error...
# multiplatform
e
I've had some users mention that they get an error when adding a dependency on my library. Does anything look off in my build.gradles.kts that could cause this? Error in 🧵
🎉 1
Copy code
hawkish-bewit:jsMain: Could not resolve com.eygraber:uri-kmp:0.0.6.
Required by:
    project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html|https://docs.gradle.org/current/userguide/declaring_repositories.html>
Copy code
All of them match the consumer attributes:
         - Variant 'androidNativeArm32ApiElements-published' capability com.eygraber:uri-kmp:0.0.6 declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native':
             - Unmatched attributes:
                 - Provides attribute 'artifactType' with value 'org.jetbrains.kotlin.klib' but the consumer didn't ask for it
                 - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                 - Provides release status but the consumer didn't ask for it
                 - Provides attribute 'org.jetbrains.kotlin.native.target' with value 'android_arm32' but the consumer didn't ask for it
r
@eygraber Perhaps its the Kotlin/JS compiler type. My library uses
kotlin.js.compiler=both
to build for both legacy and IR, so probably you would need to bulid
uri-kmp
with the same. FYI: the failing build you can try out is here: https://github.com/innertech/hawkish-bewit/tree/multiplatform-uri-kmp
a
instead of
JS(IR)
use
JS(BOTH)