Ok, I figured it out. I had a misconfiguration on my box that caused the 
JAVA_HOME variable to point to an old Java version (JRE 1.5).
I corrected the path and now it works.


On Sunday, November 11, 2012 2:24:07 PM UTC-6, Nobu Games wrote:
>
> Since I need to implement release / debug dependent code changes I was 
> thinking that using Ant would be a good idea. Knowing zilch about it so far 
> I looked up how-tos and docs.
>
>    - I installed ant (version 1.8.2)
>    - I added the SDK paths platform-tools and tools to the global PATHvariable
>    - I prepared my Android app project with android update project -p 
>    /path/to/project
>    - I do not have any space characters in any of my development related 
>    file system paths (causes Ant to break)
>
> However, as soon as I try to build with ant debug or ant release or ant 
> clean I get the following error message:
>
> Buildfile: /home/tw/Development/Android/workspace/ApiDemos/build.xml
>
> BUILD FAILED
> /home/tw/Development/Android/workspace/ApiDemos/build.xml:91: The 
> following error occurred while executing this line:
> /home/tw/Development/Android/SDK/tools/ant/build.xml:90:* taskdef A class 
> needed by class com.android.ant.SignApkTask cannot be found: 
> com.android.ant.SignApkTask*
>  using the classloader 
> AntClassLoader[/home/tw/Development/Android/SDK/tools/lib/anttasks.jar:/home/tw/Development/Android/SDK/tools/lib/common.jar:/home/tw/Development/Android/SDK/tools/lib/sdklib.jar:/home/tw/Development/Android/SDK/tools/lib/androidprefs.jar:/home/tw/Development/Android/SDK/tools/lib/mkidentity.jar:/home/tw/Development/Android/SDK/tools/lib/commons-compress-1.0.jar:/home/tw/Development/Android/SDK/tools/lib/httpclient-4.1.1.jar:/home/tw/Development/Android/SDK/tools/lib/httpcore-4.1.jar:/home/tw/Development/Android/SDK/tools/lib/httpmime-4.1.1.jar:/home/tw/Development/Android/SDK/tools/lib/commons-logging-1.1.1.jar:/home/tw/Development/Android/SDK/tools/lib/commons-codec-1.4.jar:/home/tw/Development/Android/SDK/tools/lib/manifmerger.jar]
>
> Total time: 1 second
>
> Wow. The class *SignApkTask* cannot find itself. Really clever.
>
> As you can see in the output above I also tried building a fresh ApiDemos 
> project with Ant.
>
>    - I could not find any information related to that particular error 
>    message above.
>    - The file SDK/tools/lib/anttasks.jar *does* contain a class named 
>    com.android.ant.SignApkTask
>    - I re-downloaded the latest SDK, installed everything, same error
>    - I tried the Ant version that comes bundled with Eclipse, same error
>
> So how do I fix this problem?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to