https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

bod

12/12/2020, 6:15 PM
Unrelated: I cannot seem to manage to use
android { 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.
Thank you so much 🙏 That worked!
👍 1
t

travis

12/12/2020, 9:17 PM
k

Kurt Renzo Acosta

12/15/2020, 4:47 AM
There’s also a gradle property
kotlin.setJvmTargetFromAndroidCompileOptions=true
And if you set this to true in and use this in your
android
block:
Copy code
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
👍 3
2 Views