I have ```compileOptions { sourceCompatibility...
# multiplatform
s
I have
Copy code
compileOptions {
    sourceCompatibility = JavaVersion.VERSION_17
    targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
    jvmTarget = "17"
}
but also i am getting this error
e
I had it. But my situation is different. I just started a new project. And it was created by the AS plugin. After I tried the wizard to generate project for me (https://terrakok.github.io/Compose-Multiplatform-Wizard/) - the required change worked
g
It's a bug in gradle. To fix it, in your root build.gradle add;
Copy code
allprojects {
    tasks.withType(KotlinCompile::class).configureEach {
        kotlinOptions {
            jvmTarget = JavaVersion.VERSION_17.toString()
        }
    }
}