https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

John Aoussou

09/03/2022, 2:02 PM
Does anyone know what JDK I need to choose in order to create a Compose Multiplatform project (Android + Desktop)? I tried a couple, but I keep getting
Copy code
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens <http://java.io|java.io>" to unnamed module @1f6fae8f
when running the Android part.
b

Big Chungus

09/03/2022, 2:43 PM
11 should work just fine, but cfd only needs 9+ for jlink and jpackage
j

John Aoussou

09/03/2022, 2:53 PM
No luck, still getting this error:
Copy code
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens <http://java.io|java.io>" to unnamed module @41245a2
Also curiously the Android build.gradle.kts file has
Copy code
compileOptions {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}
Fixed by resetting to factory settings.
8 Views