https://kotlinlang.org logo
d

darkmoon_uk

07/13/2022, 2:03 PM
"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

Landry Norris

07/13/2022, 2:04 PM
Is this Android Studio or IntelliJ? What version?
d

darkmoon_uk

07/13/2022, 2:04 PM
Sorry; Android Studio Electric Eel; but getting the same in Dolphin with this project.
I'll try Chipmunk.
l

Landry Norris

07/13/2022, 2:06 PM
I’ve switched to IntelliJ since it seems to have better support.
d

darkmoon_uk

07/13/2022, 2:13 PM
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

MarkRS

07/13/2022, 2:46 PM
Could it be a plugin breaking the build before the multiplatform plugin gets called?
d

darkmoon_uk

07/14/2022, 1:57 AM
@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

Matti MK

07/14/2022, 6:49 AM
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

darkmoon_uk

07/14/2022, 7:01 AM
@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

Matti MK

07/14/2022, 7:30 AM
Right, I’m not using so unfortunately no silver bullet for my issues 🤷
24 Views