Description:

when you created a android project and want to use “ant” to build project
 

Steps to Reproduce:

1.
After Created android project and use terminal to move root of project
2.
type ant in terminal
 

Error:

Buildfile: build.xml does not exist!
Build failed

 
 

Solution:

at root director of android project and type follow command
/your-android-sdk-path/tools/android update project -p .
then some message will show on terminal

Updated local.properties
No project name specified, using Activity name 'MainActivity'.
If you wish to change it, edit the first line of build.xml.
Added file ./build.xml
Updated file ./proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.