Kotlin gradle Could not initialize class class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt

前端 未结 10 2003
天涯浪人
天涯浪人 2020-12-30 18:10

I tried to use gradle for transpiling Kotlin to Js. When I run the example from https://www.codeflow.site/fr/article/kotlin-javascript I got the error : Could not initia

10条回答
  •  有刺的猬
    2020-12-30 18:52

    In your build.gradle file if you hover over the classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" it will tell you what version of Kotlin you will have to use in the kotlinVersion variable at the top of the file, according to your SDK/plugins versions.

提交回复
热议问题