Tuesday, August 9, 2011

Fw: 命令行编译android程序,上报Buildfile: build.xml does not exist!的解决办法

original link: http://www.howtoforge.com/android-buildfile-build.xml-does-not-exist

-----------------------------------------------------------------------------------------------------------------------

You want to build an Android app and get the following error:

ant debug

Buildfile: build.xml does not exist!
Build failed

-----------------------------------------------------------------------------------------------------------------------
 
Solution

Run

android update project --target 5 --path /path/to/android/project

or, if you are in your project's root directory already:

android update project --target 5 --path .

target is the build target for your project. Run

android list targets

to get a list of all available targets.

No comments: