maarten ha
05/25/2021, 8:44 PMCannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
Adding support for Java 8 language features could solve this issue.
The app is an kmm project. In both the shared build as the android build file is the compileOptions with javaversion 1.8 set but still getting the error
I don’t know gradle that well and if I need to place this somewhere else let me knowTom Hermann
05/25/2021, 10:18 PMjvmTarget
option: https://kotlinlang.org/docs/gradle.html#attributes-specific-for-jvm
Something like this with the gradle Kotlin DSL:
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
maarten ha
05/26/2021, 7:26 AM