Sebastian Sellmair [JB]
03/04/2025, 9:39 AMAlex Styl
03/04/2025, 12:14 PMColton Idle
03/04/2025, 1:53 PMColton Idle
03/04/2025, 1:55 PMSebastian Sellmair [JB]
03/04/2025, 2:14 PMDevelopmentEntryPoint {}
• Use OptimizeNonSkippingGroups (optional, but a better experience for me).
Then in a KMP project and IntelliJ, just using main function run gutter to run the APP.
If you're using Kotlin JVM or Android Studio, then configure the jvmRun task or provide
./gradlew jvmRun -DmainClass=path.toMain.MainKt
^
Basically, running compose apps is the easiest if using KMP + IntelliJ.
But the Readme shows multiple other ways of launching itSebastian Sellmair [JB]
03/04/2025, 2:40 PMMarcin Wisniowski
03/04/2025, 3:34 PMSebastian Sellmair [JB]
03/04/2025, 4:57 PMSebastian Sellmair [JB]
03/04/2025, 4:58 PMMarcin Wisniowski
03/04/2025, 5:00 PMSebastian Sellmair [JB]
03/04/2025, 5:01 PMSebastian Sellmair [JB]
03/04/2025, 5:03 PMאליהו הדס
03/04/2025, 6:07 PMאליהו הדס
03/04/2025, 6:08 PMSebastian Sellmair [JB]
03/04/2025, 6:48 PMSebastian Sellmair [JB]
03/04/2025, 6:48 PMAlex Styl
03/05/2025, 5:11 AMSebastian Sellmair [JB]
03/05/2025, 7:09 AMאליהו הדס
03/05/2025, 8:31 AMSebastian Sellmair [JB]
03/05/2025, 8:39 AMgildor
03/05/2025, 9:54 AMאליהו הדס
03/05/2025, 9:55 AMgildor
03/05/2025, 10:10 AMSebastian Sellmair [JB]
03/05/2025, 11:48 AMColton Idle
03/29/2025, 5:39 AMcomposeCompiler {
featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
}
root build.gradle? or composeApp build.gradle?
2. I didn't include
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}
and everything still worked fine. i did change my gradle jdk to the JBR that comes included in intellij.
3. According to "Optional: Create a custom entry point to launch your hot application" and FAQ
My project is a desktop-only app with Compose Multiplatform. Can I use Compose Hot Reload?Yes! However, please note that you can't start the application via the run button in the gutter (CMP-3123). Instead, use the custom Gradle task as described above. so. according to that. I can't use the run button in the gutter and need to add a custom task... but I did run it via the gutter and hot reload works!!! TL;DR It seems like a bunch of steps aren't needed. So really for the setup I just added the plugin and wrapped my app code, and added that feature flag. and ran from the gutter. and that's it. Let me know if I should actually add foojay-resolver or add the run task.
Marcin Wisniowski
03/29/2025, 10:17 AMbut I did run it via the gutter and hot reload works!!!Interesting, it doesn't work for me unless I use the Gradle task
Sebastian Sellmair [JB]
03/31/2025, 9:06 AM