Android Studio不显示布局预览 [英] Android Studio does not show layout preview

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

问题描述

我正在使用Android Studio 1.4

I'm using Android Studio 1.4

自上次我在android studio中创建新项目以来已经过去了一段时间,而今天,当我这样做时,android studio并未显示布局预览中的任何内容.它是一个空白窗口,上面写着什么也没显示".

It has passed some time since the last time I've created a new project in android studio and today when I did it the android studio does not show anything from the layout preview. Its a blank window and says "Nothing to show".

我认为它与新的支持设计库有关,因为我从未见过这种新的默认代码".我研究了一下,这是新的android材质设计指南...

I think it's related with the new support design library cuz I've never seen this new "default code". I've researched a bit and it's the new android material design guidelines ...

我已经做到了:

  1. 更新了SDK工具
  2. 清理项目并重建
  3. 无效和重新启动的缓存

...仍然没有.

已更新:

我决定更新1.5.1 ,就像这样:它给了我渲染问题..我认为它没有正确显示右下角的按钮,因为我认为这应该是一个带有其中的邮件图标和我的AS中仅显示该邮件图标(如果我输入错了,请纠正我).

I decided to update 1.5.1 it's like this: it's giving me that rendering problem.. I think it's not showing correctly the lower right button, cuz I think it's supposed to be a button with a message icon in it and in my AS just shows the message icon (correct me if I'm wrong).

推荐答案

选择另一个主题(除了Holo,例如Theme)

Choose another theme (other than Holo, for example Theme)

当您错误地或从现有样式创建样式时,通常会出现此问题.因此,选择图形布局".选择"AppTheme" (带有蓝色星号的标签).并选择任何预定义的样式.在我的情况下,光"是指应该可以解决问题.

When you create the style incorrectly or from an existing style, this problem usually occurs. So select the "Graphical Layout" select "AppTheme" (The tab with a blue star). And select any of the predefined style. In my case "Light" which should resolve the problem.

通过选择此选项来重新启动Android Studio.可能要花一些时间.

Restart your Android Studio by choosing this option. It may take some time.

然后,如果仍然无法正常工作,请尝试重建您的项目.

Then, if still doesn't work try to rebuild your project.

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

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