Res' 在 Eclipse 中不存在
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7160732/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Res' does not exist in Eclipse
提问by iamallison123
I am having the issue in Eclipse:
我在 Eclipse 中遇到了问题:
Unparsed aapt error(s)! Check the console for output.
未解析的 aapt 错误!检查控制台的输出。
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?
res 文件夹在那里...有什么建议吗?
I cleaned it, closed the project, exit eclipse, reopened it and still same issue above exists.
我清理了它,关闭了项目,退出 eclipse,重新打开它,仍然存在上述相同的问题。
回答by eureka
Mybe you path have a issue “C:\Users\Allison\Desktop\penncat app?\penncat app 822\res“;my problem is the path have chinese character.
我的你的路径有问题“C:\Users\Allison\Desktop\penncat app?\penncat app 822\res”;我的问题是路径有中文字符。
回答by peter
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.
当我不小心删除了我的 res 文件夹时,我遇到了同样的错误。似乎使用了 ADT 识别的文件夹。您可以看到在包资源管理器中,ADT 识别的文件夹有一个带“a”的图标,如果没有,则移开先前的 res 文件夹并在包资源管理器中“创建新文件夹”将成为一个。
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 资源文件夹”,但我还没有弄清楚。
回答by Andro Selva
You cannot refer to your hardisk's directory from Android. You can only make use of your sdcard or internal memeory.
您不能从 Android 引用您的硬盘目录。您只能使用您的 SD 卡或内部存储器。
回答by ridvan
Change your direction name maybe it has a invalid character,delete "?" in directory and make clean and buid your project
更改您的方向名称,可能它包含无效字符,请删除“?” 在目录中进行清理并构建您的项目
回答by InfZero
My path has the ampersand symbol (&), so I had to change the project location to another one.
我的路径有 & 符号 (&),所以我不得不将项目位置更改为另一个位置。
回答by esilver
I solved this problem by creating an empty "res" folder in the project in question.
我通过在相关项目中创建一个空的“res”文件夹解决了这个问题。
In my case the error was:
在我的情况下,错误是:
[2015-08-10 16:52:37 - picasso] ERROR: resource directory '/Users/me/MyProject/Dependencies/Lib/picasso/picasso/res' does not exist
There was no res
folder there, but by making an empty one this error went away and my workspace built again.
那里没有res
文件夹,但是通过创建一个空文件夹,这个错误消失了,我的工作区再次建立。