Android studio version
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
There are even not showing any message, what the…?
I have tried
After Update my Android Studio (Dolphin | 2021.3.1), XML Layout Preview Can't showing
Android Studio Dolphin | 2021.3.1 does not show layout preview
invalidated and restarted caches
but not working.Has anyone encountered it?
How to solve it? Any help will be appreciate.
3
Answers
The editor is probably unable to load the custom theme file.
First try to fix issues in your app theme file.
(For me it was an empty item tag of fontFamily)
If unsuccessful, just select a different theme from the top toolbar menu of the designer.
Gradle is also a likely culprit so make sure that your gradle version is 7.4 and AGP is 7.3
I had the same problem. I think it was a bug in Android Studio.
The only solution that worked for me was downgrading the Android Studio to Chipmunk (2021.2.1 Patch 2). You can find it here: https://developer.android.com/studio/archive
When installing another Android Studio, do not forget to uninstall the previous version. (You will have the option when the setup will be shown).
Thanks for the original answer to: https://stackoverflow.com/a/74903373/17596747
As of today, I have a new version of Android Studio available i.e Android Studio Flamingo | 2022.2.1 after updating to this version above issue has been resolved.