Try following steps:
-
remove the faulty director(y|ies) as follows:
$ rm -fR $(find . -type d -name crunch|xargs)
-
when you are building, run
$ ant clean release
-
then, clean->Build Project and:
$ rm -fR $(find . -type d -name crunch|xargs)
Source: Android Open Source Project
Ant BUILD FAILED The following error occurred while executing this line: xxx 解决方案,布布扣,bubuko.com
Ant BUILD FAILED The following error occurred while executing this line: xxx 解决方案