ant 自动构建血泪史

1.  android.bat update project -p . -t xxx

其中: xxx 为 targetid 

特别注意的是:  targetid 不等于 API Level....

2. ant 编译之前,关掉 eclipse, 并且执行清理:

ant clean;

ant debug

3. 出现 invalid resource directory name res crunch 错误:

1) 建议执行 ant clean;

2) 删除掉 对应的目录即可。

原文地址:https://www.cnblogs.com/jhj117/p/4837127.html