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

前端 未结 10 2058
天涯浪人
天涯浪人 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 19:02

    Solved this issue by setting the latest Kotlin version (1.3.72) in build.gradle file.

    buildscript {
    ext {
        kotlinVersion = '1.4.20'
        springBootVersion = '2.0.4.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    ... 
    }
    

提交回复
热议问题