Ask Your Question
1

android_app_chooser build error

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

hughie gravatar image

I followed this article. http://www.ros.org/wiki/ApplicationsPlatform/Clients/Android

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

How can I solve this problem?

BUILD FAILED
  /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 com.android.ant.AaptExecLoopTask 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

Comments

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: com.android.ant.AaptExecLoopTask ]
hughie gravatar image hughie  ( 2011-10-26 16:59:56 -0500 )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 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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 http://code.google.com/p/rosjava/issues/detail?id=70

edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 848 times

Last updated: Nov 08 '11