I am trying to find the ‘ live editing of literals ‘ menu which should be here –
The option is enabled via Android Studio settings, I have the latest version installed and I have no clue why I can’t see it like it should be in the official documentations –
https://developer.android.com/jetpack/compose/tooling#live-edit-literals
Any clues?
2
Answers
Live edit of literals
Android Studio can update in real time some constant literals used in composables within previews, emulator, and physical device. Here are some supported types:
Int
String
Color
Dp
Boolean
check the setting do u have Live edit of literals enabled. if you do, you just need to press finger press icon right next to preview run button Icon in your preview screen. It only change above listed types.
It means that you have added a new component and it is not yet detected to change live (maybe you copied and pasted it).