Android的蚂蚁错误:无效的资源目录名称:./bin/res\\crunch [英] android ant error: invalid resource directory name: ./bin/res\crunch

查看:424
本文介绍了Android的蚂蚁错误:无效的资源目录名称:./bin/res\\crunch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用蚂蚁命令行建立与外部库的Andr​​oid项目。 (出于某种原因,我不能把它变成一个罐子摆在库/)

I'm using ant command line to build an android project with an external library. (For some reason, I can't make it into a jar to put in libs/)

在完成Android的更新和参考链接项目和LIB项目的所有步骤后,出现错误:运行蚁释放时无效的资源目录名称./bin/res\\crunch弹出。我知道这是一个常见的​​错误,但没有做深入的研究,并尝试了所有的解决方案后,解决它,包括
1)项目 - >清洁
2)删除../bin/res/crunch。 (它会重新出现,并创建了麻烦)
3)改变Android版本或SDK版本,以较高者

After completing all the steps of android update and reference link for the project and the lib project, the error of "invalid resource directory name: ./bin/res\crunch" pops out when running "ant release". I know it is a common error but failed to solve it after doing intensive research and trying out all the solutions, including 1) project->clean 2) delete ../bin/res/crunch. (it will re-appear and create the trouble) 3) change android version or SDK version to higher one

任何建议?谢谢!

推荐答案

我终于想通了:复制一切从斌/ RES /紧缩文件夹和资源粘贴,然后删除该文件夹紧缩。如果库项目被修改,错误将重新出现。重做上述步骤将再次修复它。

Finally I figured it out: copied everything from bin/res/crunch folder and pasted it in res and then deleted the crunch folder. If the library project is modified, the error will reappear. Redoing the procedure above will fix it again.

这篇关于Android的蚂蚁错误:无效的资源目录名称:./bin/res\\crunch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆