I have the simplest gradle project configured using intellij for kotlin 1.2.10. Here is my build.gradle file:
buildscript {
ext.kotlin_version = \'1.2.10
There is a gradle property used by Kotlin plugin which can be used. When you add
kotlin.setJvmTargetFromAndroidCompileOptions = true
to your gradle.properties file.
When you have this configuration on your build.config
android{
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
problem sould be solved.