Reputation: 111
any idea to make android studio Jetpack compose auto refresh like Hot reload in Flutter it's annoying! Is there Auto-refresh in Jetpack Compose viewer?
Upvotes: 11
Views: 8862
Reputation: 253
Now, you can use Compose Hot Reload that created by Jetbrains, but it still experimental https://github.com/JetBrains/compose-hot-reload
Upvotes: 1
Reputation: 17971
As of October 2024, as I'm working on a Compose MultiPlatform project, focused on iOS and Android:
Res.drawable...
and fails, telling you out of date but no number of rebuilds will fix it.Res
paths. See detailed explanationUpvotes: 1
Reputation: 300
Just wanted to expand on @jim-ovejera answer and let people know, that Live Edit, that acts as Hot Reload, is now stable and has it's own guide in documentation
Upvotes: 4
Reputation: 876
When Android Studio Electric Eel becomes stable, Live Edit is enabled by default that acts as Hot Reload. Right now its still on preview.
Upvotes: 3
Reputation: 936
Right now, compose does not support Hot reloads. But Literals values can be updated directly.
Some supported types.
Int
String
Color
Dp
Boolean
You can view constant literals that trigger real-time updates without the compilation step by enabling these highlighted values.
Upvotes: 6