Android Ant Build 遇到的问题

Ant的具体使用这里就不详细说明了,这里记录下自己使用Ant批量打包apk的时候遇到的问题。

 

1. build 出现 crunch等字样的错误

  <span style="color: #FF0000;">[aapt] invalid resource directory name: F:\workspace\Zlib\bin\res/crunch</span>

  BUILD FAILED
  D:\Android\sdk\tools\ant\build.xml:601: The following error occurred while executing this line:
  D:\Android\sdk\tools\ant\build.xml:653: The following error occurred while executing this line:
  D:\Android\sdk\tools\ant\build.xml:698: null returned: 1

在build.xml中增加property,忽略处理不需要的目录和文件,  可以加到AndroidSDK\tools\ant\build.xml  (对android所有项目生效

也可以添加到项目的build.xml中(这样子就只对自己的项目生效!)

<property
name="aapt.ignore.assets"
value="\x3Cdir\x3Ecrunch:!.svn:!.git:.*:\x3Cdir\x3E_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" />

 

2.  

 

转载于:https://www.cnblogs.com/homleening/p/5691789.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值