Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

439
Vistas
Kotlin 1.3 with Gradle - "Kotlin not configured" error after marking the source root in intellij

I started from a regular non-Gradle Kotlin project. Then I decided later on to link my project to Gradle. I have set up my build.gradle.kts as mentioned in the Kotlin docs:

plugins {
    kotlin("jvm") version "1.3.72"
}

repositories {
    mavenCentral()
}

dependencies {
    implementation(kotlin("stdlib"))
}

The build was successful. However, Intellij could no longer recognize my Kotlin modules (no syntax highlighting, etc.). Even the option of creating new Kotlin files was no longer available. So I thought maybe I just needed to mark the src directory as the Source Root, but the error "Kotlin not configured" appeared at the top.

Is there something wrong with my build? I'm still new to Gradle. I've tried other solutions like invalidating the cache and changing the dependencies but none of them seemed to work.

over 4 years ago · Hanz Gallego
2 Respuestas
Responde la pregunta

0

I closed my project, and then I ran:

rm -rf .idea .gradle gradle

and then it worked again

over 4 years ago · Hanz Gallego Denunciar

0

This happened to me while trying to convert a Java file into Kotlin, with a message saying there was no configuration available.

It turned out that this was caused by having the Java file in a non-source folder.

over 4 years ago · Hanz Gallego Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda