研讨Eclipse 中不存在
我在 Eclipse 中遇到问题:
未解析的 aapt 错误!检查控制台的输出。
输出:
[2011-08-23 07:57:04 - Penncat AQI] ERROR: resource directory 'C:\Users\Allison\Desktop\penncat app?\penncat app 822\res' does not exist
res 文件夹在那里...有什么建议吗?
我清理了它,关闭了项目,退出 Eclipse,重新打开它,但仍然存在上述相同的问题。
I am having the issue in Eclipse:
Unparsed aapt error(s)! Check the console for output.
Output:
[2011-08-23 07:57:04 - Penncat AQI] ERROR: resource directory 'C:\Users\Allison\Desktop\penncat app?\penncat app 822\res' does not exist
The res folder is there though...any suggestions?
I cleaned it, closed the project, exit eclipse, reopened it and still same issue above exists.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我通过在相关项目中创建一个空的“res”文件夹解决了这个问题。
就我而言,错误是:
那里没有
res
文件夹,但是通过创建一个空文件夹,这个错误消失了,我的工作区再次构建。I solved this problem by creating an empty "res" folder in the project in question.
In my case the error was:
There was no
res
folder there, but by making an empty one this error went away and my workspace built again.也许你的路径有问题“C:\Users\Allison\Desktop\penncat app?\penncat app 822\res“;我的问题是路径有中文字符。
Mybe you path have a issue “C:\Users\Allison\Desktop\penncat app?\penncat app 822\res“;my problem is the path have chinese character.
当我不小心删除了 res 文件夹时,我遇到了同样的错误。看来使用了 ADT 识别的文件夹。您可以看到,在包资源管理器中,ADT 识别的文件夹有一个带“a”的图标,如果没有,则移走以前的 res 文件夹并在包资源管理器中“创建新文件夹”即可创建一个。
我想应该有更好的方法将现有文件夹标记为“android 资源文件夹”,但我还没有弄清楚。
I have encountered the same error when I accidentally deleted my res folder. It seems that folders that are recognized by the ADT are used. You can see that in the package explorer, folders recognized by the ADT have an icon with 'a', if not, moving away the previous res folder and 'create new folder' in the package explorer would make one.
I guess there should be a better way to mark an existing folder as 'android resource folder', but I didn't figure it out yet.
您无法从 Android 引用您的硬盘目录。您只能使用 SD 卡或内部存储器。
You cannot refer to your hardisk's directory from Android. You can only make use of your sdcard or internal memeory.
更改你的方向名称可能有无效字符,删除“?”在目录中进行清理并构建您的项目
Change your direction name maybe it has a invalid character,delete "?" in directory and make clean and buid your project
我的路径有与符号 (&),因此我必须将项目位置更改为另一个位置。
My path has the ampersand symbol (&), so I had to change the project location to another one.