ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

android_app_chooser build error

asked 2011-10-25 16:32:12 -0600

hughie gravatar image

I followed this article.

When I did 'rosmake android_app_chooser', I got the error message as below.

How can I solve this problem?

  /opt/rocon_elec/android/android_gingerbread/build.xml:4: The following error occurred while executing this line:
  /opt/rocon_elec/rosjava_core/rosjava_bootstrap/android.xml:46: taskdef class cannot be found
   using the classloader AntClassLoader[/opt/android-sdk-linux/tools/lib/anttasks.jar:/opt/android-sdk-linux/tools/lib/common.jar:/opt/android-sdk-linux/tools/lib/sdklib.jar:/opt/android-sdk-linux/tools/lib/androidprefs.jar:/opt/android-sdk-linux/tools/lib/mkidentity.jar:/opt/android-sdk-linux/tools/lib/commons-compress-1.0.jar:/opt/android-sdk-linux/tools/lib/httpclient-4.1.1.jar:/opt/android-sdk-linux/tools/lib/httpcore-4.1.jar:/opt/android-sdk-linux/tools/lib/httpmime-4.1.1.jar:/opt/android-sdk-linux/tools/lib/commons-logging-1.1.1.jar:/opt/android-sdk-linux/tools/lib/commons-codec-1.4.jar]

build environment :

ubuntu 11.04 natty
Ant 1.8.1
android SDK : android-sdk_r14-linux.tgz
edit retag flag offensive close merge delete


There is [/opt/android-sdk-linux/tools/lib/anttasks.jar] file. and the jar file has AaptExecTask.class. but the error message show this message in verbose mode. [ Caused by: java.lang.ClassNotFoundException: ]
hughie gravatar image hughie  ( 2011-10-26 16:59:56 -0600 )edit
Sorry, just to be clear. You checked the jar file that is listed first in the classpath for the class AaptExecLoopTask.class?
damonkohler gravatar image damonkohler  ( 2011-10-27 00:13:56 -0600 )edit
Hi, Yes, I extracted [${sdk.dir}/tools/lib/anttasks.jar] file($sdk.dir=/opt/android-sdk-linux, rosjava_bootstrap/android.xml) and checked. Thank you for your concern.
hughie gravatar image hughie  ( 2011-10-27 12:28:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2011-11-08 01:37:53 -0600

damonkohler gravatar image

This is actually due to a change in the new version of Android tools. You'll have to fix rosjava_bootstrap/android.xml to make this work. See

edit flag offensive delete link more


FYI, this is now fixed.
damonkohler gravatar image damonkohler  ( 2011-11-09 20:10:43 -0600 )edit

Question Tools


Asked: 2011-10-25 16:32:12 -0600

Seen: 935 times

Last updated: Nov 08 '11