# Ant problem when building rosjava

Hello all,

I following the instructions on the rosjava welcome page http://code.google.com/p/rosjava/wiki... .

Everything goes fine until I try to build rosjava.jar.

At first, the result of the "ant dist" instruction was that it was unable to find the sdk.dir folder, so I decided to hardcode the path of my Android sdk installation. If I write the command "android" in the shell, I can see how the AVD manager starts.

Now, the problem is that the build fails because it's unable to find com.android.ant.SetupTask

See the error trace below:

BUILD FAILED
/myfolder/rosjava/rosjava/build.xml:5: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/build-common.xml:16: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/dependencies.xml:20: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/android/build.xml:6: The following error occurred while executing this line:
/myfolder/rosjava/rosjava/android/library/build.xml:38: The following error occurred while executing this line:


Someone asked if I have the anttasks.jar under the /myfolder/android-sdk-linux_x86/tools/lib folder, and yes, I do.

What can be happening?

edit retag close merge delete

what do you mean by 'hardcode the path of my Android sdk installation'? The only setup I did was to add the Android SDK to my path. For the rest, I use the "android update project --path .' to generate the local.properties file.
( 2011-06-07 04:00:09 -0500 )edit

Sort by » oldest newest most voted
more