Android Studio布局编辑器未显示任何建议 [英] Android Studio layout editor does not show any suggestions

查看:380
本文介绍了Android Studio布局编辑器未显示任何建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了新的XML文件temp.xml,当我尝试在其中添加文本视图时,没有显示任何建议.当我单击TextView时,TextView被添加而没有正文.然后,我从其他文件中复制粘贴了一些代码,并尝试将大小,颜色等提供给TextView编辑器,但没有给出任何建议(请查看下面的图像链接),我不知道我的布局编辑器或Android Studio是否存在任何问题. (我已经尝试过使Invalidate cache/Restart解决方案无效,) 如果你们过去曾经遇到过这个问题,请帮助我.先感谢您. 下面的这张图片没有任何建议

I created new XML file temp.xml, when I tried to add text view in it, no suggestions are shown to me. When I clicked on TextView, TextView gets added with no body. Then I copy paste some code from other file and tried to give size, color etc to TextView editor is not giving me any suggestions(check image link below) I don't know is there any problem with my layout editor or with Android Studio. (I already tried Invalidate cache / Restart solution, not worked ) If you guys faced this problem in past plz help me. Thank You in advance. This below image doesn't show any suggestions

推荐答案

此问题有三个合适的答案.

There are three suitable answers for this question .

  1. 文件->使高速缓存无效/重新启动...->选择无效并重新启动"

  1. File -> Invalidate Caches / Restart... -> Select Invalidate and Restart

只需导航到您的android studio安装目录,即

Just navigate to your android studio installation directory, i.e

yourDrive:/.AndroidStudio3.3/system

并删除缓存文件夹(如果正在运行,请先关闭android studio).

and DELETE THE CACHE FOLDER ( first close android studio, if its running ).

然后再次启动Android Studio.完成.

Then start Android Studio again. Done.

P.S我正在使用android studio 3.3.

P.S I am using android studio 3.3.

打开设置"或首选项"对话框:在Windows或Linux上,从菜单栏中选择文件">设置".导航到构建,执行,部署>即时运行".取消选中代码更改后重新启动活动旁边的框.

Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. Navigate to Build, Execution, Deployment > Instant Run. Unchecked the box next to Restart activity on code changes.

这篇关于Android Studio布局编辑器未显示任何建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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