Guilherme Delgado
05/22/2021, 4:41 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.
And if I choose “fix it” the IDE adds this to my build.gradle.kts
in shared module:
android {
...
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
Thing is, kotlinOptions
throws unresolved reference. How can I fix this? Thanks 🙏
ps: don’t know if it’s related or just a coincidence, but I got this error after adding multiplatformSettings lib 🤔John O'Reilly
05/22/2021, 4:45 PMtasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
Guilherme Delgado
05/22/2021, 4:47 PMlouiscad
05/22/2021, 4:49 PMGuilherme Delgado
05/22/2021, 4:50 PMlouiscad
05/22/2021, 4:51 PMGuilherme Delgado
05/22/2021, 4:56 PM:shared:compileDebugKotlinAndroid
Cannot 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
one line per inline operation ^