Android AAPT Issue- While replacing new image to the resource

可紊 提交于 2019-12-09 17:14:27

问题


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

回答1:


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.

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.



来源:https://stackoverflow.com/questions/13928061/android-aapt-issue-while-replacing-new-image-to-the-resource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!