Android Studio Layout Preview Stuck Loading
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:
close the existing project
take android studio to the welcome screen
at the bottom of the welcome screen click on Configuresee image for more details
from the list of items select Restore Default Settingssee image for more details
finally select Restore and Restartsee image for more details
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"