title: Kotlin & Gradle - Make sure you have kotlin-reflect.jar in the classpath
body: <p>I am working on a app using Kotlin language and Gradle Build in IntelliJ IDEA IDE. I am getting following error:</p>
  
  <pre><code>Exception in thread "main" kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
      at kotlin.jvm.internal.ClassReference.error(ClassReference.kt:86)
      at kotlin.jvm.internal.ClassReference.getQualifiedName(ClassReference.kt:26)
      at WorkerKt.main(Worker.kt:62)
  </code></pre>
  
  <p>I have included the dependencies as mentioned in following answer <a href="https://stackoverflow.com/a/36440329/6862286">Add kotlin-reflect dependency in gradle</a></p>
  
  <p>Even I have added the jar file in libs folder but still I am getting above error at runtime.</p>
  
  <p>My Gradle file is as below:</p>
  
  <pre><code>group 'com.working.workerhelp'
  version '1.0-SNAPSHOT'
  
  buildscript {
      ext.kotlin_version = '1.2.21'
  
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      }
  }
  
  apply plugin: 'kotlin'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
      compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
      testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
  }
  
  compileKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  compileTestKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  </code></pre>
  
  <p>Is there something I need to configure for Gradle Build or am I missing something?</p>