I'm using ant command line to build an android project with an external library. (For some reason, I can't make it into a jar to put in libs/)
After completing all the steps of android update and reference link for the project and the lib project, the error of "invalid resource directory name: ./bin/res\crunch" pops out when running "ant release". I know it is a common error but failed to solve it after doing intensive research and trying out all the solutions, including 1) project->clean 2) delete ../bin/res/crunch. (it will re-appear and create the trouble) 3) change android version or SDK version to higher one
Any suggestion? Thanks!
A cleaner solution is to clean before building:
ant clean
ant release
You don't really have to copy things from the 'crunch' directory to the 'res' directory, since these are generated as part of the build anyway.
It appears that the root cause of this problem is incompatibility between ADT v.22.2.1 and ANT. Related threads:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With