Android的AAPT发出─在更换新的图像资源 [英] Android AAPT Issue- While replacing new image to the resource
问题描述
在我更新了我的Eclipse和Android SDK中我遇到一些问题,同时粘贴文件的绘制。其实我想更换一个新的形象,在相同的名称。当我重新启动的错误去了日食。原因是什么,我怎么能避免它。请指引我。
After I updated my eclipse and Android SDK I encounter some problem while pasting a file to the drawable. Actually I am trying to replace a new image in the same name. After I restart the eclipse the error went of. What is the reason and how can I avoid it. Please guide me.
**Log:**
Error: name expected logo.png /Sample/res/drawable-large line 4 Android AAPT Problem
在此先感谢。
Thanks in Advance.
推荐答案
我看到了同样的事情。这似乎是在最新版本中的BUG,并且它不限于图片文件。我有类似的问题,原料资源 - 的AAPT试图解析多数民众赞成粘贴到 RES
文件夹中的XML什么
I'm seeing the same sort of thing. It appears to be a bug in the latest release, and it's not limited to image files. I'm having similar problems with raw resources--the AAPT tries to parse anything that's pasted into the res
folder as XML.
而不是重新启动Eclipse中,你还可以通过清理项目清理错误。
Rather than restarting Eclipse, you can also clear the errors by cleaning the project.
修改这是很明显的固定在最近的工具版本。如果您仍然遇到问题,请确保你拥有了一切的最新更新。
EDIT This was evidently fixed in more recent releases of the tools. If you are still experiencing the problem, make sure you have the latest updates of everything.
这篇关于Android的AAPT发出─在更换新的图像资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!