android studio 渲染错误 [英] android studio render error

查看:58
本文介绍了android studio 渲染错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 windows 中使用 android studio 1.0.1,java sdk 版本是 1.7.

I use the android studio 1.0.1 in windows and java sdk version is 1.7.

api级别小于21就OK了.

when the api level is less than 21, that is OK.

推荐答案

在渲染图像上方的控制栏上,有一个选项可以选择用于渲染图像的 API.在您的情况下,它必须隐藏在展开箭头下方.只需选择较低的 API 即可正确呈现.

On the control bar above the rendered image, there is an option to choose the API to render the image with. It must be hidden under the expand arrows in your case. Simply select a lower API to have it render properly.

众所周知,API 21 目前会干扰渲染,而以前的版本将正确渲染布局.

API 21 is known to mess with rendering as for now and previous versions will render the layouts properly.

另外,请注意 IDE 渲染永远不会 100% 准确,不应基于生产周期,因为具体的系统编译可能会以不同的方式实现某些机制.

Also, please note that the IDE rendering is NEVER 100% accurate and should not be based on in the production cycle, as concrete system compilations may implement some mechanisms differently.

这篇关于android studio 渲染错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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