I am trying to generate apk on command line using ant. I am able to use ant clean but for ant debug and ant release command I am getting following error.
I had the same error after updating the android SDK to the latest build tools.
The tools\ant\build.xml script does not contain any references for the tools.
This can be solved, by adding the tools to the build.xml and point to the correct path. For me this was build-tools\22.0.1
Please compare and update the tool section in build.xml
Thank you Alex for the tip!