Could not find org.jetbrains.kotlinx:kotlinx-html:0.6.4

Has*_*sef 3 gradle kotlin ktor kotlinx-html

I'm trying to test the HTML Application, my build.gradle dependencies are:

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
    compile "org.jetbrains.ktor:ktor-core:$ktor_version"
    compile 'org.jetbrains.kotlinx:kotlinx-html:0.6.4'
    compile "org.jetbrains.ktor:ktor-netty:$ktor_version"
    compile "org.apache.commons:commons-email:1.4"
    compile "org.slf4j:slf4j-simple:1.7.25"
    compile "ch.qos.logback:logback-classic:1.2.1"
    testCompile group: 'junit', name: 'junit', version: '4.12'
}
Run Code Online (Sandbox Code Playgroud)

I got the below error while running gradle build:

Could not find org.jetbrains.kotlinx:kotlinx-html:0.6.4

what is the error here?

Opa*_*pal 9

在这里您可以找到有关包含 kotlinx 的说明。您需要做的是添加适当的存储库:

repository {
   jcenter()
}
Run Code Online (Sandbox Code Playgroud)

和依赖项:

dependencies {
   compile 'org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.4' // server side dev
   compile 'org.jetbrains.kotlinx:kotlinx-html-js:0.6.4'  // client side dev 
}
Run Code Online (Sandbox Code Playgroud)