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

rob42

02/27/2024, 9:31 PM
I have a shared kotlin module that I'd like to use with compose desktop, across both an Android and a Desktop target. When I build it with the
kotlin("jvm")
plugin in its build.gradle.kts, I can import this module no problem in my androidMain and desktopMain modules. When I switch to use
kotlin("multiplatform")
with
kotlin { jvm() }
I can no longer import this from desktopMain -- but can from androidMain. Can anyone help me understand why this doesn't work?
I'm still looking for ideas here, if anyone has any. When I try and use
kotlin("multiplatform")
with
kotlin { jvm() }
, the desktop module can see that my multiplatform module exists, but can't see any classes defined within it
👀 1