so I setup a kmp project using <kmp.jetbrains.com>...
# multiplatform
r
so I setup a kmp project using kmp.jetbrains.com. in the shared directory androidMain is not recognized as a sourceSet. gradle sees it just fine. Is this a known issue?
p
Hi Ron, which IDE are you using? Which KMP plugin have you got installed? Thanks
r
intellij idea 2025.1.1.1 and the kmp plugin: id("org.jetbrains.kotlin.multiplatform") version "2.1.21"
p
For the KMP plugin, please look in your IDE menu bar: IntelliJ IDEA -> Settings -> Plugins. You should have the Kotlin Multiplatform plugin there (excuse my old plugin version, you just need to have that plugin, irrespective of version, there).
Screenshot 2025-05-30 at 09.42.27.png
If needed I can share a screenshot of all the IDE plugins I have installed.
r
hmmz it looks I have the old plugin:
p
That's a completely different plugin 🙂 Let's try installing the brand new one.
Here's the announcement
r
I cant install it as I am on linux
p
r
see:
p
Oooh 😕 I can check with the team
r
not happy now 🙂
I am developing a demo application on all platforms for a tech session
p
Which targets do you want to use? Android/ios/desktop/wasm?
r
on monday I get a mac (blegh)
p
You will not be able to use iOS from Linux, as the mac tooling is mandatory (an Apple requirement).
☝️ 1
r
I am (for now) concentrating on backend and wasm
p
Ah, interesting!
I will add that to my note to the team.
r
is there a reason its not available for linux? usually you guys are great at supporting linux. I've been a unix/linux man since 1983 (I know I am old)
p
So far it's been an apple requirement, but we know it's a painpoint and will try our best. Don't worry, I've been coding since 1988 but that was on DOS. So I too am old!
r
oh I started coding in 1977 on a sinclair Zx 81 (I'm 63 now)
p
I was not alive in 1977 lol
r
once the demo app is done, I will make the repository public
p
Anyway, I have asked my team to let me know if there's a workaround for you. I suspect you might be able to use Android Studio with the old KMM plugin, but that sounds like a lot of work if you're getting a Mac on Monday. I will provide feedback a bit later today
Nice!
r
thanks, want me to send you a ping when its public?
p
Yes, that would be cool!
r
ok
p
Thank you
If you find more painpoints, please send them through too. Always keen on feedback, thanks Ron.
https://youtrack.jetbrains.com/issue/KMT-789 is the issue for Linux and Windows right now. Please upvote, if not for you, but for other Linux users, if you feel this is an important feature. Thank you!
z
See also: https://kotlinlang.slack.com/archives/C3PQML5NU/p1747394589727819?thread_ts=1747235085.077879&amp;cid=C3PQML5NU Your use case should definitely already work with this set of plugins. Just about everything should, outside of iOS development (which won't even with the plugin, given the Apple limitations), and some small conveniences like easier run configs. If your problem is specifically
androidMain
not showing correctly, I suspect it's the lack of the Android plugin that's the culprit.
thank you color 1
r
adding those plugins, seems to have resolved it
kodee happy 1
z
Great! In the future the KMP plugin on all platforms will do all of this automatically (already does on macOS), but glad it works manually in the meantime!