Hello, i was wondering if there is any updates or ...
# multiplatform
i
Hello, i was wondering if there is any updates or solutions to this issue with KMM+intellij: https://youtrack.jetbrains.com/issue/KT-28194 What i’m facing is this: In a KMM library project. i have :
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask::class) {
                compilerOptions {
                    freeCompilerArgs.add("-Xjdk-release=11")
                    freeCompilerArgs.add("-Xcontext-receivers")
                }
            }

            extensions.findByType(KotlinMultiplatformExtension::class)?.apply {
                jvm {
                    jvmToolchain(11)
                }
                val hostOs = System.getProperty("os.name")
                val arch = System.getProperty("os.arch")
                val nativeTarget = when {
                    hostOs == "Mac OS X" && arch == "x86_64" -> macosX64("native")
                    hostOs == "Mac OS X" && arch == "aarch64" -> macosArm64("native")
                    hostOs == "Linux" -> linuxX64("native")
                    // Other supported targets are listed here: <https://ktor.io/docs/native-server.html#targets>
                    else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
                }
                nativeTarget.apply {
...
                }
                this.sourceSets.apply {
                    commonMain {
...
                    }

                    commonTest {
...
                    }

                    jvmTest {
...
                }
            }
The problem is what IJ says in the screenshots Could anyone solve this issue?