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) 删除掉 对应的目录即可。