xxxxxxxxxx
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
xxxxxxxxxx
android {
// Other code here...
kotlinOptions {
jvmTarget = "1.8"
}
}
xxxxxxxxxx
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}