I created a new KMP project today. In the newly cr...
# compose
p
I created a new KMP project today. In the newly created project, I think hot reload is set up already. But when I run it on the Desktop (hot reload only supports desktop now, if I’m correct) using the generated Run configuration (composeApp [desktop]), the hot reload does not work. Then I try the command
./gradlew desktopRunHot -PmainClass={my.package}.MainKt
({my.package is my package name), it starts the app with a small icon on the top left for Hot Reload Tooling. And even with this tool, I have to expand the tool and click on Reload. How can I set up the configuration to make the hot reload works correctly, I just want to change the code, save it and see the updates. Thanks! (I’m using IntelliJ IDEA 2025.1.1.1)
s
If you're using the latest version (v1.0.0-alpha10), try adding
--auto
to the gradle command. The default behavior to auto reload was changed in this version.
p
yes, I’m using v1.0.0-alpha10
can we create a run configuration?
I managed to create a Run configuration. Thanks!
Although I had to import the project to Android studio, then import to IntelliJ IDEA again