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
({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
SaurabhS
05/27/2025, 4:49 AM
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
Phuc
05/27/2025, 6:06 AM
yes, I’m using v1.0.0-alpha10
Phuc
05/27/2025, 6:06 AM
can we create a run configuration?
Phuc
05/27/2025, 9:44 AM
I managed to create a Run configuration. Thanks!
Phuc
05/27/2025, 9:45 AM
Although I had to import the project to Android studio, then import to IntelliJ IDEA again