Mark Vogel
01/05/2023, 4:25 PMcommonMain
module with any dependencies I must have the kotlin.internal.mpp.hierarchicalStructureByDefault=false
flag specified in my gradle.properties file.
This issue on YouTrack claims that the problem is fixed with IntelliJ 2022.3 and Kotlin 1.7.20 (if I'm reading it correctly), but with those versions it still is not fixed. Does this happen to anyone else? Am I doing something wrong with my project?
Here is a more in-depth explanation of the issueAdam S
01/05/2023, 4:42 PMapplication
and kotlin("multiplatform")
plugins aren’t playing nice together. Maybe IntelliJ isn’t correctly creating the module dependencies, so isn’t realising that jvmMain
extends commonMain
? Can you adding
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:${Versions.serialization}")
to jvmMain
?Mark Vogel
01/05/2023, 9:36 PMcommonMain
project if the flag is not present; the jvmMain
does resolve the dependencies properly.
I tried removing the application
plugin altogether and refreshed Gradle without the flag, but the same issue still occurs.Mark Vogel
01/17/2023, 12:47 AM