How can I set `kotlinOptions.jvmTarget = "1.8"` f...
# multiplatform
d
How can I set
kotlinOptions.jvmTarget = "1.8"
for android target? Without it I have an error:
Copy code
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
I tried
Copy code
android("android") {
        compilations.main.kotlinOptions {
            jvmTarget = "1.8"
        }
    }
And it doesn't work, gives a DSL error.
k
Copy code
tasks.withType<KotlinCompile>().configureEach {
    kotlinOptions.jvmTarget = "1.8"
}
d
thank you!