无法解析 org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41
Could not resolve org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41
我想构建一个基于 ktor 的文件,但我遇到了编译错误,但我不知道出了什么问题。
编译错误:
无法解析org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41
这些是我的依赖项:
dependencies {
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41")
implementation("io.ktor:ktor-auth:$ktor_version")
implementation("io.ktor:ktor-gson:$ktor_version")
implementation("org.litote.kmongo:kmongo:4.0.2")
implementation("org.litote.kmongo:kmongo-coroutine:4.0.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7")
implementation("commons-codec:commons-codec:1.14")
implementation("io.ktor:ktor-network-tls:$ktor_version")
implementation("io.ktor:ktor-freemarker:$ktor_version")
}
此库位于 kotlin-js-wrappers 存储库中。确保将此存储库添加到存储库列表中:
repositories {
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers/") }
}
另外,请注意该库的现代版本有另一个工件组和名称 (org.jetbrains.kotlin-wrappers:kotlin-css
),并发布在 mavenCentral()
存储库中。
升级css-jvm 版本解决问题。
implementation "org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41" to implementation "org.jetbrains:kotlin-css-jvm:1.0.0-pre.122-kotlin-1.4.10"
添加这个对我有用
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers/") }
}
dependencies {
implementation ("org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41")
}
我想构建一个基于 ktor 的文件,但我遇到了编译错误,但我不知道出了什么问题。
编译错误:
无法解析org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41
这些是我的依赖项:
dependencies {
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41")
implementation("io.ktor:ktor-auth:$ktor_version")
implementation("io.ktor:ktor-gson:$ktor_version")
implementation("org.litote.kmongo:kmongo:4.0.2")
implementation("org.litote.kmongo:kmongo-coroutine:4.0.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7")
implementation("commons-codec:commons-codec:1.14")
implementation("io.ktor:ktor-network-tls:$ktor_version")
implementation("io.ktor:ktor-freemarker:$ktor_version")
}
此库位于 kotlin-js-wrappers 存储库中。确保将此存储库添加到存储库列表中:
repositories {
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers/") }
}
另外,请注意该库的现代版本有另一个工件组和名称 (org.jetbrains.kotlin-wrappers:kotlin-css
),并发布在 mavenCentral()
存储库中。
升级css-jvm 版本解决问题。
implementation "org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41" to implementation "org.jetbrains:kotlin-css-jvm:1.0.0-pre.122-kotlin-1.4.10"
添加这个对我有用
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers/") }
}
dependencies {
implementation ("org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41")
}