You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ktor Version and Engine Used (client or server and name)
1.2.6, server, ktor-server-core
Describe the bug
Today, upon build following error occured, for more info check the screenshot below
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.2-1.3.60.
Searched in the following locations:
- https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.pom
- https://jcenter.bintray.com/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.jar
- https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.pom
- https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.jar
- https://jitpack.io/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.pom
- https://jitpack.io/org/jetbrains/kotlinx/kotlinx-coroutines-core-common/1.3.2-1.3.60/kotlinx-coroutines-core-common-1.3.2-1.3.60.jar
Required by:
project : > io.ktor:ktor-server-core:1.2.6 > org.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16
project : > io.ktor:ktor-server-core:1.2.6 > io.ktor:ktor-utils-jvm:1.2.6
project : > io.ktor:ktor-server-core:1.2.6 > io.ktor:ktor-http-jvm:1.2.6
project : > io.ktor:ktor-websockets:1.2.6 > io.ktor:ktor-http-cio-jvm:1.2.6
project : > io.ktor:ktor-server-core:1.2.6 > org.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16 > org.jetbrains.kotlinx:kotlinx-coroutines-io:0.1.16
I want to highlight the line: Could not find org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.2-1.3.60., that's the main reason of cause of build failed, and that was caused by dependency of org.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16 which is defined in io.ktor:ktor-server-core:1.2.6 as shown in screenshot below
To Reproduce
Steps to reproduce the behavior:
Write the following implementation "io.ktor:ktor-server-core:1.2.6"
Import using gradle
See error
Expected behavior
Expected to resolve the dependency.
Screenshots
The text was updated successfully, but these errors were encountered:
Animeshz
changed the title
Dependency ktor-server-core v1.2.6 in dependency has
ktor-server-core v1.2.6 has something wrong with its dependency
Nov 22, 2019
Similar issue here. The gradle build fails also on a Kotlin Multi Platform project (Android and iOS), where I use Ktor as HTTP client.
I updated the Android Studio Kotlin plugin to 1.3.60, then updated the project's Kotlin version to the same value. Updated Ktor to version 1.2.6 and Kotlinx serialization to 0.14.0.
The issue seems to be caused by the wrong version number that has been specified for the coroutines library in the Ktor gradle.properties file. It's set to 1.3.2-1.6.0 by this commit 01f940e.
I believe that by setting it just to 1.3.2 it will make the whole thing compile again.
Also, there are some CI jobs that fail on the 1.2.6 tag.
Ktor Version and Engine Used (client or server and name)
1.2.6, server, ktor-server-core
Describe the bug
I want to highlight the line:
Could not find org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.2-1.3.60.
, that's the main reason of cause of build failed, and that was caused by dependency oforg.jetbrains.kotlinx:kotlinx-coroutines-io-jvm:0.1.16
which is defined inio.ktor:ktor-server-core:1.2.6
as shown in screenshot belowTo Reproduce
Steps to reproduce the behavior:
implementation "io.ktor:ktor-server-core:1.2.6"
Expected behavior
Expected to resolve the dependency.
Screenshots
The text was updated successfully, but these errors were encountered: