Android Studio布局预览卡住了 [英] Android Studio Layout Preview stuck loading

查看:111
本文介绍了Android Studio布局预览卡住了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的新Mac遇到了这个问题.问题是,每当我尝试将预览用于布局或布局设计时,我都会得到不停的加载微调器.它一直在继续.我已经等了几分钟,什么也没发生.它一直在旋转.

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 stop. It just keeps going. I've waited several minutes and nothing happens. It just keeps on spinning.

我试图使我的缓存无效并重新启动android studio,但是它死机了.强迫我强制退出应用程序并重新启动它.

I've tried to invalidate my cache and restart android studio, but it freezes. Forcing me to force quit the application and restart it.

我尝试将Android Studio版本升级到最新版本(3.5预览版),但无济于事

I've tried upgrading my Android Studio version to the latest (3.5 preview), but to no avail

我尝试更改设计中的所有选项,例如API,设备,应用主题

I've tried changing all of the options like API, device, App Theme in the design

我当前在10.13.6上使用Mac

I'm currently using a Mac on 10.13.6

推荐答案

以下命令可以帮助我解决问题:

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*

这篇关于Android Studio布局预览卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆