dimsuz
04/22/2020, 4:49 PMkotlinOptions.jvmTarget = "1.8"
for android target? Without it I have an error:
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
I tried
android("android") {
compilations.main.kotlinOptions {
jvmTarget = "1.8"
}
}
And it doesn't work, gives a DSL error.Kris Wong
04/22/2020, 5:02 PMtasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
dimsuz
04/22/2020, 6:30 PM