Intellij is unable to resolve any of the reference...
# kotlin-native
m
Intellij is unable to resolve any of the references for classes that come from cinterop. All of the code is in
iosMain
source set. This used to work correctly but has not for awhile. I've tried invalidating my cache, doing a full build, but the warnings will not go away. I'm using 2020.3 community edition. Kotlin plugin 203-1.4.10-relase-IJ5981.133 Kotlin 1.4.10 Is this a known problem or just something broken with me
I'm seeing that the imports work if in directory
iosX64Main
but not in
iosMain
m
I'm seeing something similar for
io.ktor.client.features.json.*
m
For me I found that the problem came from not enabling hierarchical project structure. https://kotlinlang.org/docs/reference/migrating-multiplatform-project-to-14.html#try-the-hierarchical-project-structure
Copy code
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
m
Not for me unfortunately, I had it configured that way already