bod
12/12/2020, 6:15 PMandroid { kotlinOptions {
in kts (it works in regular gradle). And I need this to set jvmTarget
to 1.8. It says Unresolved reference kotlinOptions
. I verified that this syntax does work on non multiplatform android build files, with kts.travis
12/12/2020, 9:17 PMKurt Renzo Acosta
12/15/2020, 4:47 AMkotlin.setJvmTargetFromAndroidCompileOptions=true
And if you set this to true in and use this in your android
block:
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
No need for kotlinOptions.jvmTarget = "1.8"
. Not sure if it’s the best but putting out options for everyone