Android Studio 布局预览卡在加载中 [英] Android Studio Layout Preview stuck loading
问题描述
我的新 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屋!