Hello, I am facing issue with compose previews on...
# android-studio
t
Hello, I am facing issue with compose previews on Flamingo Beta 1 After each and every change, even the smallest one like changing background color, I have to refresh the preview manually by click the refresh button. Can anyone please tell me how do I resolve this?
c
The Problems tool window should give more detail about why the refresh didn’t happen. Can you include that here?
t
Screenshot 2023-02-01 at 9.31.45 AM.png,Log.txt
As soon as I click refresh, the preview updates. Just that I have to do it every time manually after making even a minor change
c
Do you have a snippet of the code in the Preview?
t
Here’s the snipped from the one of the composable. But this happens in the entire project, with all types of layout
c
Hmm I see. I can't see anything immediately obvious that would cause the issue so we'd probably need the Studio logs and have it attached to a bug. If you can please file a bug and I can triage it to the team
t
Android Studio Logs.zip
c
Please file the bug yourself. It's important since there will likely be follow up questions that only you can answer since you are seeing the issues on your machine with your code.
t
Yes, I did that. Just sent the logs in case you want to have a look at it
c
Great thanks! 🙏
t
Okay so, I replaced compose default bom with Chris Bane’s (https://github.com/chrisbanes/compose-bom), bumped up
kotlinCompilerExtensionVersion
to
1.4.0
and the
kotlin plugin
to
1.8.0
and now the preview updates automatically without any error. Thanks to @Chris Sinco [G] and Android Studio team for really quick response