-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin Multiplatform - Could not resolve dependencies #4095
Comments
Hi 👋 You'll need to declare repositories to download the artifacts from. Something like: repositories {
mavenCentral()
} |
Hi @martinbonnin , |
Other things to try:
The artifacts are there so there has to be a way to download them from your project |
Also something worth investigating is the You can also take a look at Confetti, a sample multiplatform project that uses Let us know what you find! |
@martinbonnin |
|
Interesting! Can you try from the command line? The IDE can get choppy sometimes so it's really hard to tell the exact error from screenshots. |
While I'm run `Execution failed for task ':data:compileKotlinMetadata'.
|
Gotcha, thanks for providing this🙏. This does look like a HMPP issue. I'd recommend you either:
or
// Workaround for https://youtrack.jetbrains.com/issue/KT-51970
afterEvaluate {
afterEvaluate {
tasks.configureEach {
if (
name.startsWith("compile")
&& name.endsWith("KotlinMetadata")
) {
println("disabling ${this@subprojects}:$name")
enabled = false
}
}
}
} It will disable the metadata task in your project but you don't need it unless you're publishing an app (which doesn't sound to be the case here). See https://youtrack.jetbrains.com/issue/KT-51970 for more details |
bumb kotlin to 1.6.21 helped !!! Thanks so much !!!! 😄 😄 |
Awesome, glad I could help :). Sorry the HMPP transition is a bit of a bumpy road. We're working on some blog post to hopefully streamline this. |
Summary
Could not resolve com.apollographql.apollo3:apollo-runtime:3.3.0.
Version
3.3.0
Description
I'm writing a project in kotlin multiplatform, my targets are Android and JVM. I can't add dependencies to the project
@benjamn @glasser @xrd @martijnwalraven
The text was updated successfully, but these errors were encountered: