"Kotlin not configured" ...I've applied the `mult...
# multiplatform
d
"Kotlin not configured" ...I've applied the
multiplatform
plugin and even depended on the
stdlib
in
commonMain
- what else is there to convince the IDE it's configured?
l
Is this Android Studio or IntelliJ? What version?
d
Sorry; Android Studio Electric Eel; but getting the same in Dolphin with this project.
I'll try Chipmunk.
l
I’ve switched to IntelliJ since it seems to have better support.
d
Good call I'll try that next. I'm not new to multiplatform this just started happening on one of my modules inexplicably. Multiplatform always seems like a hop between IDE's: AppCode is best at new projects templates... Android Studio best at Compose Previews... IntelliJ best at general code awareness. I don't have the answer but really hope this aspect improves.
Damn, same result, looks like some interaction between my module structure and Android target
I'll try and file a minimal reproducer
m
Could it be a plugin breaking the build before the multiplatform plugin gets called?
d
@MarkRS congrats you are 'on the money!' - disabling the apple and cocoapods plugins caused my Android targets to behave as expected again 🙂 Thanks for suggesting this angle...
m
What’s the solution here exactly? Moving
multiplatform
plugin as the first one on the list of plugins on the KMM module? I keep getting
Kotlin not configured
on my
iosMain
module but it doesn’t cause any issues
d
@Matti MK In my case it was having the Apple Gradle DSL plugin loaded at all; which was the issue. Luckily I think I can live without it, and simply removed it.
m
Right, I’m not using so unfortunately no silver bullet for my issues 🤷