Ant failed to create

I have a Java application that uses the ant.jar classes (ant 1.8.2) to create an Android application from the build.xml file with the release as the target. My Android project was created using the android create project command using sdk 2.2. When I launch the application to create an Android application, I get the following message:

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

I checked the sdk.dir path and the sdk-location path, and both of them are correct.

How can this be solved?

Thanks, Eyal.

+5
source share
4 answers

Have you confirmed that the com.android.ant.SetupTask class really is in the sdk.dir and sdk-location paths that you define?

Linux , , , , JAR:

   grep -ri "com.android.ant.SetupTask" *
+1

:

android update project --path .
+17

, , build.xml . , build.xml( ..). .

0

Windows Vista , "build.properties", zxing:

android-home = [ ]

... "proguard.jar", :

ProGuard- = C:\android_sdk\\ProGuard\Lib\proguard.jar

.

0

All Articles