android ant 打包报错: [aapt] invalid resource directory name:
来源:互联网 发布:二维变换矩阵 编辑:程序博客网 时间:2024/05/16 10:45
错误如下:
[aapt] invalid resource directory name: /home/liaoli/android/project/workspace3/BaseLibrary/bin/res crunch
BUILD FAILED
/home/liaoli/android/Tools/eclipseTools/android-sdk-linux/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/liaoli/android/Tools/eclipseTools/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/liaoli/android/Tools/eclipseTools/android-sdk-linux/tools/ant/build.xml:698: null returned: 1
原因:
原因分析
透过错误信息我们可以了解到,错误的原因是在编译目录 bin/res 目录中产生了一个叫crunch 的目录,而根据 android 规范这是不允许的,所以就出现了这个错误。
解决办法有如下三个
- 将 eclipse 的自动编译先去掉勾选(crunch 是ecliplse 生成的),然后在执行ant打包。
- 修改 androidsdk/tools/ant/build.xml 中 aapt.ignore.assets 的值参照
<property name="aapt.ignore.assets" value="<dir>crunch:!.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" /> - 在配置好ant 的执行环境后 cd 到源码目录 然后执行 ant release
0 0
- android ant 打包报错: [aapt] invalid resource directory name:
- android ant 打包遇到[aapt] invalid resource directory name crunch
- android 报错:invalid resource directory name bin/res/crunch
- android 报错:invalid resource directory name bin/res/crunch
- invalid resource directory name
- invalid resource directory name
- invalid resource directory name
- invalid resource directory name
- invalid resource directory name,
- Android开发引入项目报invalid resource directory name bin/res/crunch”错误
- invalid resource directory name: 问题解决
- Error: Invalid resource directory name
- invalid resource directory name 无效的资源目录名
- 解决bug:在eclipse中导入Android项目时报错: “invalid resource directory name bin/res/crunch”——诺诺"涂鸦"记忆
- ant android crunch 打包报错
- Android ant自动打包 crunch 报错
- cordova android ant 打包出现 build.xml:694: ${aapt}错误
- 使用ant打包报错
- 用swap方法强行释放STL容器占用的内存
- Spring+JTA实现分布式事务
- MYSQL查询优化(二)
- 1.3 C++程序的构成和书写形式
- MYSQL查询优化:Limit
- android ant 打包报错: [aapt] invalid resource directory name:
- [LeetCode] 3Sum
- hdu5442
- Selenium自动化测试用例设计注意事项
- 工厂模式---设计模式(二)
- 1.4 C++程序的编写和实现
- js 调用多参数oc代码错误纪录
- iOS学习笔记之-C语言基础01
- SSH基本原理