kmm-production-sample
kmm-production-sample copied to clipboard
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
Happens when project is compiling
core\datasource\storage\FeedStorage.kt: (26, 13): 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 Adding support for Java 8 language features could solve this issue.
you can add these lines inside the kotlin block:
android {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
Hi guys, that's still not working for me. Any more suggestions about it please ?
if I remove the following line it works: https://github.com/Kotlin/kmm-production-sample/blob/52afdcc7b9d7454a85751c2336c67fed6cb3a02a/shared/src/commonMain/kotlin/com/github/jetbrains/rssreader/core/datasource/storage/FeedStorage.kt#L26
Hi! What is your JAVA_HOME?
Could you show me output of ./gradlew clean :android:assembleDebug
?