How To Configure Kotlin Jvmtarget In A Multiplatform Android Module?
I'm getting this build error: 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 Ad
Solution 1:
As per the documentation: https://kotlinlang.org/docs/mpp-dsl-reference.html#compilation-parameters
Don't be fooled by the Gradle docs' code examples into thinking a lot of this compilation syntax applies only to the Java block. This is how you specify the jvm version target for an Android build:
kotlin {
android {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
ios {
...
Post a Comment for "How To Configure Kotlin Jvmtarget In A Multiplatform Android Module?"