Jetpack Compose – The preview does not render in real-time

Solution for Jetpack Compose – The preview does not render in real-time
is Given Below:

I use Compose with AS Arctic Fox v2020.3.1. When I update the code, the preview does not render in real-time. AS show the message “The preview is out of date” and I must click “Build & Refresh”. I’d like it to render UI in real-time, similar to XML Design.

How do it?

Thanks in advance.

enter image description here

AFAIK you can’t. You’re able to edit string values and certain others, such as padding dp’s but when adding or removing elements, you have to rebuild to view the updated layout.