Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

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

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 initialize class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt which comes from line apply plugin: 'kotlin2js' of build.gradle.

I have no idea of what the missing class is and why kotlin2js is asking for it. Any suggestion ?

10 months ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

This issue was resolved by setting the latest version of Kotlin (1.3.72) in the build.gradle file.

 buildscript { ext { kotlinVersion = '1.4.20' springBootVersion = '2.0.4.RELEASE' } repositories { mavenCentral() } ... }
10 months ago · Santiago Trujillo Denunciar

0

I just had the same issue. On windows, I checked the kotlin version from the command line with gradle -v and then adjusted the kotlin version in build.gradle of my project to match my version of gradle.

I hope this works for you too.

10 months ago · Santiago Trujillo Denunciar

0

In my case this solves the problem:

buildscript {
    ext.kotlin_version = "1.3.72"
    repositories {
        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        
    }
}

Set ext.kotlin_version = "1.3.72" and $kotlin_version

10 months ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.