Android的 - 图形显示在Eclipse中不工作 [英] Android - Graphical display not working in Eclipse
问题描述
没能找到这个问题的答案
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 Files\android-sdk\platforms\android-10\data\res\drawable\btn_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.
如果你不知道它关闭你的头顶,你可以得到你的Android 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.
这篇关于Android的 - 图形显示在Eclipse中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!