研讨Eclipse 中不存在

发布于 2024-12-01 11:27:34 字数 329 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

娜些时光,永不杰束 2024-12-08 11:27:35

我通过在相关项目中创建一个空的“res”文件夹解决了这个问题。

就我而言,错误是:

[2015-08-10 16:52:37 - picasso] ERROR: resource directory '/Users/me/MyProject/Dependencies/Lib/picasso/picasso/res' does not exist

那里没有 res 文件夹,但是通过创建一个空文件夹,这个错误消失了,我的工作区再次构建。

I solved this problem by creating an empty "res" folder in the project in question.

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.

好倦 2024-12-08 11:27:34

也许你的路径有问题“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.

霓裳挽歌倾城醉 2024-12-08 11:27:34

当我不小心删除了 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.

行雁书 2024-12-08 11:27:34

您无法从 Android 引用您的硬盘目录。您只能使用 SD 卡或内部存储器。

You cannot refer to your hardisk's directory from Android. You can only make use of your sdcard or internal memeory.

ˇ宁静的妩媚 2024-12-08 11:27:34

更改你的方向名称可能有无效字符,删除“?”在目录中进行清理并构建您的项目

Change your direction name maybe it has a invalid character,delete "?" in directory and make clean and buid your project

思念绕指尖 2024-12-08 11:27:34

我的路径有与符号 (&),因此我必须将项目位置更改为另一个位置。

My path has the ampersand symbol (&), so I had to change the project location to another one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文