Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant failed to build

Tags:

java

android

ant

I have build a Java appliction which is using ant.jar (ant 1.8.2) classes for building android application from it's build.xml file with release as target. My Android project has been built by using android create project command, using sdk 2.2. When I run my application for building the Android application I get the following message -

build.xml:46: taskdef class com.android.ant.SetupTask cannot be found

I have verified the sdk.dir path and the sdk-location path and both are correct.

How it can be solved?

Thanks, Eyal.

like image 655
eyal Avatar asked Jan 05 '11 14:01

eyal


1 Answers

You need to update the project:

android update project --path .
like image 53
trojanfoe Avatar answered Oct 14 '22 01:10

trojanfoe