简体   繁体   English

无法在Android Studio中点击XML预览

[英]Can't click on XML preview in Android Studio

Occasionally when I am using Android Studio the XML preview that appears on the right hand side of the window seems to lock. 有时,当我使用Android Studio时,出现在窗口右侧的XML预览似乎已锁定。 It isn't freezing because it updates like normal any time I make an edit the the XML. 它不是冻结的,因为只要我对XML进行编辑,它就会像通常一样更新。 I just can't click on anything inside it. 我只是无法单击其中的任何内容。

Like I said, this happens occasionally and will randomly start working again and I have no idea what I did to change it. 就像我说的那样,这种情况偶尔会发生,并且会随机再次开始工作,我不知道该如何更改。

Currently using Android Studio 3.1.4 当前使用的是Android Studio 3.1.4

Try this: 尝试这个:

  • First I had the same problem. 首先,我有同样的问题。 Then I chose a different device. 然后,我选择了另一台设备。 I saw the error window with the ability to click "rebuild and clean your project". 我看到了可以单击“重建并清理您的项目”的错误窗口。

  • Second Invalidate Caches/Restart 第二次失效缓存/重启

it worked. 有效。 Try it. 试试吧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM