title: Kotlin 1.3 with Gradle - "Kotlin not configured" error after marking the source root in intellij
body: <p>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 <code>build.gradle.kts</code> as mentioned in the <a href="https://kotlinlang.org/docs/reference/using-gradle.html#plugin-and-versions" rel="noreferrer">Kotlin docs</a>:</p>
  <pre><code>plugins {
      kotlin(&quot;jvm&quot;) version &quot;1.3.72&quot;
  }
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      implementation(kotlin(&quot;stdlib&quot;))
  }
  </code></pre>
  <p>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 <code>src</code> directory as the Source Root, but the error &quot;Kotlin not configured&quot; appeared at the top.</p>
  <p>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.</p>