Why is jetpack compose preview taking minutes to load?

Viewed 1660

Using Jetpack Compose and the layout preview for a composable is taking over a minute to load, does this sound like an issue with my Android Studio or a compose issue?

2 Answers

Preview speeds are much faster with the latest bumblebee update of studio Canary. Also, configure your antivirus to skip build files from real-time scanning since it dramatically slows down builds.

I had really great preview times (~1s) and then out of nowhere it started taking up to 3 minutes to load previews and previewing them incorrectly. Invalidating the caches and restarting Android Studio seemed to do the trick for me.

Related