dave08
01/11/2023, 1:45 PMSam
01/11/2023, 1:48 PMmbonnin
01/11/2023, 1:51 PMKotlinJvmOptions
or sombonnin
01/11/2023, 1:51 PMmbonnin
01/11/2023, 1:52 PMKotlinCompile
is the "generic" task. Since it's shared with JS and native, it doesn't make sense for it to have jvmTarget
tapchicoma
01/11/2023, 1:54 PMKotlinJvmTarget
in this casetapchicoma
01/11/2023, 1:55 PMdave08
01/11/2023, 2:08 PMdave08
01/11/2023, 2:10 PMtasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile>().configureEach {
compilerOptions {
languageVersion.set(KOTLIN_1_9)
freeCompilerArgs.set(listOf(
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
// "-Xcontext-receivers"
))
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
}
tapchicoma
01/11/2023, 2:10 PMKotlinJvmCompile
dave08
01/11/2023, 2:10 PMdave08
01/11/2023, 2:11 PMtapchicoma
01/11/2023, 2:12 PMdave08
01/11/2023, 2:12 PMCannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
in my code using a certain library function...???dave08
01/11/2023, 2:13 PMtapchicoma
01/11/2023, 2:13 PMdave08
01/11/2023, 2:15 PMtapchicoma
01/11/2023, 2:17 PMBuild -> Build project
? 🤔dave08
01/11/2023, 2:17 PMdave08
01/11/2023, 2:18 PMdave08
01/11/2023, 2:18 PMtapchicoma
01/11/2023, 2:18 PMdave08
01/11/2023, 2:19 PMtapchicoma
01/11/2023, 2:20 PMFile -> Repair IDE
dave08
01/11/2023, 2:21 PMdave08
01/11/2023, 2:22 PM