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

Error importing android library into android project using rosjava.jar

asked 2011-06-24 05:27:18 -0600

soetommy gravatar image

updated 2014-01-28 17:09:55 -0600

ngrennan gravatar image

Hi,

There is a problem with importing "import org.ros.rosjava.android.MessageCallable;" "import org.ros.rosjava.android.views.RosTextView;" which are part of the android library into the MainActivity.java inside the android project.

The project uses rosjava.jar which contains necessary java files to build; However, there is a difficulty with incorporating the android library into the project?

I am not that knowledgeable with using the android library together with rosjava. Can you advise on how to get this done?

Thank you! Soe

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-06-27 06:57:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

First, build the rosjava.jar by running ant dist in the rosjava directory. Currently, the directions to accomplish this are in flux, but it's something like this for the moment:

roscd rosjava rosmake ant dist

Then, you should be able to reference the Android library project by following the directions here:

http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-06-24 05:27:18 -0600

Seen: 1,834 times

Last updated: Jun 27 '11