Skip to content Skip to sidebar Skip to footer

Android Studio Layout Preview Stuck Loading

I'm having this problem with a new mac I got. The issue is that whenever I try to use the preview for layout or the design of the layout, I get the loading spinner that doesn't sto

Solution 1:

This below command helped me to fix the stucking issue:

rm -Rf ~/Library/Preferences/AndroidStudio*
rm -Rf ~/Library/Preferences/com.google.android.*
rm -Rf ~/Library/Preferences/com.android.*
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*

Solution 2:

I had this issue but non of the above answers worked for me, this was how I solved it:

Your android studio will restart. If you are asked to import settings, select Do not import. I believe this issue is caused by a corrupt android studio settings so re-importing existing settings will lead to the same error.

For windows computers, the solution might just be to delete the android studio folder in your home directory that carries the version of android studio you're using.

Installing another version of android studio could also solve this issue only if you do not re-import your existing android studio settings.

Solution 3:

After opening your project on Android Studio, from your Mac's Menubar, navigate to

Files -> Sync Project with Gradle Files

Wait for the project to sync completely. Hope this helped.

Solution 4:

It downloads the essential file for using layout as u can see it on the background tasks on the bottom right nearer to the corner. So loading signifies as it downloads some modules on background so just dont close the program

Solution 5:

Remove the project and Reimport the project again. It works for me :)

Post a Comment for "Android Studio Layout Preview Stuck Loading"