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

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

问题描述

我正在使用 ant 命令行来构建一个带有外部库的 android 项目.(由于某种原因,我无法将其做成罐子放入 libs/)

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/)

在完成项目和lib项目的android更新和引用链接的所有步骤后,运行ant release"时弹出无效资源目录名称:./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

有什么建议吗?谢谢!

推荐答案

最后我想通了:从 bin/res/crunch 文件夹中复制所有内容并将其粘贴到 res 中,然后删除了 crunch 文件夹.如果库项目被修改,错误会再次出现.重新执行上述步骤将再次修复它.

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 ant 错误:无效的资源目录名称:./bin/res\crunch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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