Join Slack
Powered by
I ask this question and I have found a fix. So if ...
# multiplatform
o
Ohiorenua Aigboje
11/19/2025, 2:26 PM
I ask this question and I have found a fix. So if anyone is looking for this fix.
https://kotlinlang.org/docs/multiplatform/multiplatform-advanced-project-structure.html#aligning-versions-of-common-dependencies-across-source-sets
val mobileMain by creating { dependsOn(commonMain.get()) androidMain.get().dependsOn(this) iosMain.get().dependsOn(this) dependencies { // implement here } } val nonMobileMain by creating { dependsOn(commonMain.get()) jvmMain.get().dependsOn(this) wasmJsMain.get().dependsOn(this) dependencies { // implement here } }
c
Chrimaeon
11/19/2025, 5:34 PM
For discoverability it would make more sense to post it in the thread of this question instead of starting a new post. So now if someone finds your question he will not find your solution. 😃
o
Ohiorenua Aigboje
11/19/2025, 6:24 PM
Okay, I will do that next time.
2
Views
Open in Slack
Previous
Next