while migrating to kotlin 2.0.0 i got this error on this line of code
Copy code
jvm("desktop") {
jvmToolchain(17)
}
Using 'jvmToolchain(Int): Unit' is an error. Configuring JVM toolchain in the Kotlin target level DSL is prohibited. JVM toolchain feature should be configured in the extension scope as it affects all JVM targets (JVM, Android).
h
hfhbd
05/26/2024, 7:45 AM
As the error message said, move it one line (scope) up.