Android的 - 图形显示在Eclipse中不工作中不、图形、工作、Android

由网友(离人少年昨与晨)分享简介:没能找到这个问题的答案Not been able to find the answer to this在以往我看到任何的日食之内我的XML文件中的图形显示,只显示文本字符串,而不是按钮或类似的东西。When ever I look at the graphical display for any of my XM...

没能找到这个问题的答案

Not been able to find the answer to this

在以往我看到任何的日食之内我的XML文件中的图形显示,只显示文本字符串,而不是按钮或类似的东西。

When ever I look at the graphical display for any of my XML files within eclipse, it only shows the text strings and not buttons or anything like that

在错误日志中读取错误!无法解析绘C: Program Files文件 Android的SDK 平台Android的10 DATA 水库绘 btn_default.xml属性中的背景异常详细信息记录在窗口>显示视图>错误日志

The Error log reads error! Unable to resolve drawable "C:Program Filesandroid-sdkplatformsandroid-10dataresdrawablebtn_default.xml" in attribute "background" Exception details are logged in Window > Show View > Error Log

我试图改变从降API的版本到没有运气

I have tried changing the version of the api from drop down to no luck

感谢您的时间

推荐答案

有是你的目标SDK版本和图形化布局的目标之间的不匹配,应该是一个容易解决。

There is a mismatch between your target SDK version and your Graphical Layout target, should be an easy fix.

如果你不知道它关闭你的头顶,你可以得到你的Andr​​oid SDK版本从您的项目名称右键单击你的项目,去属性,选择Android的,并寻找测试在带有复选标记该行的平台专栏。

If you don't know it off the top of your head, you can get your Android SDK version for your project from right-clicking on your project name, going to Properties, selecting "Android", and looking for the test in the "platform" column for the row with a checkmark.

然后在图形布局XML文件,在场景选择和创建按钮的右上方是Android版本下拉。更改此相匹配的一个项目,而错误应该走的图形preVIEW将呈现正确。

Then in the Graphical Layout for your XML file, in the top right in between the Locale selector and the Create button is a drop-down for Android versions. Change this to match the one for your project, and the errors should go away the graphical preview will render correctly.

阅读全文

相关推荐

最新文章