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

Elka

11/13/2020, 4:16 PM
Hello, After I enabled hierarchical source sets as I have need a special implementation for
iosArm32
Copy code
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
I am getting
Gradle import errors
and the IDE is not recognizing anything (no code highlighting, no code navigation…) The error is
Copy code
Unable to build Kotlin project configuration
Details: java.lang.reflect.InvocationTargetException: null
Caused by: java.lang.IllegalStateException: Couldn't resolve metadata artifact for ModuleDependencyIdentifier(groupId=org.jetbrains.kotlinx, moduleId=kotlinx-coroutines-core) in configuration ':shared:iosArm32CompileKlibraries'
HOWEVER, when I don’t use the coroutines-native-mt branch the gradle configuration works fine.
Copy code
implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines") {
    version {
        strictly '1.3.9-native-mt'
    }
}
Adding
force = true
to
nativeMain
dependencies fixed the problem
Copy code
implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines") {
    force = true
}