Hi all! I've just downloaded a KMP project(Android...
# multiplatform
c
Hi all! I've just downloaded a KMP project(Android and Desktop only) from the web wizard. I have Android Studio Ladybug 2024.2.1 Patch 3 with KMP plugin 0.8.3(242)-5 and Kotlin plugin 242.23339.11.2421.12700392-AS. I open the project from the unzipped KMP generated and when I try to create the "composeApp" run configuration, it won't show up in the list of configurations. The only thing that resembles is "Conpose Preview". Am i missing something?
f
Do you have the relevant plugins installed in Android Studio?
c
thanks for your reply. Yes, I guess so. I have the KMP plugin and the Kotlin plugin
Do I need anything else?
I followed the official documentation on jetbrains web
f
Check the gradle-section; It should have some relevant tasks.
When I double-click the “desktopRun” gradle task, it will automatically make that a Run Configuration.
c
it's weird. When I try to view the Gradle panel, it doesn't show.
image.png
And I have double checked, And I have the gradle plugin installed
image.png
f
Works on my machine 🤷
c
I'm gonna try to disable and reenable the gradle plugin
👍 1
f
Try to install the Compose plugin too (not sure if relevant, but that’s installed for me)
c
No luck.
f
Gradle plugin should just work, out of the box; 🤷 I’m out of ideas
c
Mmmm...I'm gonna try to run it in intellij Idea
👍 1
instead of Android Studio
f
That should work 👍
c
I think I solved it. For a strange reason, I had to click on the build.gradle.kts, and select "Link gradle" at the top. That enabled Gradle. It is importing now the gradle project
kodee happy 1
Let's see how it goes.
made it work with IntellijIdea
Thank you for your answers and support. Appreciated
👍 1