question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiplatform ArtifactNotFouundException

See original GitHub issue

I’m trying to import com.michael-bull.kotlin-result:kotlin-result:1.1.8 in the commonMain source set in a multiplatform project, but the gradle build is failing with this stacktrace:

Gradle import errors project ‘:web’: Unable to build Kotlin project configuration Details: org.gradle.internal.operations.BuildOperationQueueFailure: There was a failure while populating the build operation queue: Could not find kotlin-result-1.1.8-samplessources.jar (com.michael-bull.kotlin-result:kotlin-result:1.1.8). Searched in the following locations: https://repo.maven.apache.org/maven2/com/michael-bull/kotlin-result/kotlin-result/1.1.8/kotlin-result-1.1.8-samplessources.jar Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find kotlin-result-1.1.8-samplessources.jar (com.michael-bull.kotlin-result:kotlin-result:1.1.8).<eol>Searched in the following locations: https://repo.maven.apache.org/maven2/com/michael-bull/kotlin-result/kotlin-result/1.1.8/kotlin-result-1.1.8-samplessources.jar

I’m using the same dependency in another (JVM-only) project and it works perfectly. Is there something I’m missing with multiplatform configuration that will solve this? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
rocketramancommented, May 10, 2021

I ran into this issue with mockk also. FYI, I created https://youtrack.jetbrains.com/issue/KTIJ-10769.

1reaction
michaelbullcommented, May 10, 2021

@moeindev this is a general Kotlin MPP problem, see: https://youtrack.jetbrains.com/issue/KTIJ-10769

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publishing native artifacts from a Kotlin Multiplatform project
Publishing native artifacts from a Kotlin Multiplatform project. Using Kotlin Multiplatform technology to produce native CocoaPods and NPM ...
Read more >
A multiplatform Result monad for modelling success or failure ...
Multiplatform ArtifactNotFouundException. I'm trying to import com.michael-bull.kotlin-result:kotlin-result:1.1.8 in the commonMain source ...
Read more >
michaelbull/kotlin-result - Awesome Lists
Multiplatform ArtifactNotFouundException. 2 years ago ・open・2 replies. avatar. add separate benchmark to compare the different implementations of binding.
Read more >
Kotlin multiplatform build fails with default automation container
Kotlin-multiplatform build fails on default Gradle build configuration: job("Build") { gradlew("openjdk:11", "build") }.
Read more >
Current issues with Kotlin Multiplatform and how to fix them
properties and copy the sdk.dir value from there to the corresponding file in the Multiplatform project. You can now continue to build your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found