In our Kotlin Native project, we have a `kotlin-pl...
# kotlin-native
y
In our Kotlin Native project, we have a
kotlin-platform-common
module A dependent on another
kotlin-platform-common
module B. Android studio can correctly find the references, but gradle cannot compile module A as it cannot find the reference to B. Does anyone know how to correctly make one kotlin-platform-common module dependent on another?
If i make them both just a simple Kotlin module (
apply plugin: 'kotlin'
), then it can find the references.
d
I sometimes implement A and B to the desired platform and use a third module with dependency on A platformed and B platformed
i
It looks like your issue relates to Kotlin Mutliplatform support so I think it's better to ask it in #multiplatform. Also could you please provide a link to your project?
You cannot create a platform project transitively depending on several common projects. But in some of the upcoming releases of kotlin-platform-common plugin you will be able to specify several
expectedBy
-dependencies in one platform project so this should solve your problem.