Ask Your Question
1

ROS tango samples don't run

asked 2014-12-10 22:09:55 -0600

dan gravatar image

updated 2014-12-10 23:39:21 -0600

I set up the Tango tablet according to the wiki https://github.com/ologic/Tango/wiki/Getting-Started-with-Tango-and-ROS

and, after a bit of fiddling, got it to compile, load and build in android studio. However, when I try to run any of the examples, android studio detects the Tango, starts to run and then fails "Error Type 3" class {org.ros.android....MainActivity} does not exist.

But there is a MainActivity in most of the examples.

I suspect I am missing something obvious, but need some help figuring out what it is.

The wiki says that there is some documentation at:

~/rjandroid/src/android_core/docs/build/html/index.html ~/rjandroid/src/android_core/docs/build/html/javadoc/index.html

but the docs directory in that location does not have a build directory. All of the other directories in android_core do have a build directory and went through a successful build.

Some progress: By going to "run," "edit configurations" and selecting "Deploy default APK" instead of what was there, "Do not deploy anything" I was able to get a little farther. Unfortunately, now I get an UnsupportedMethodException in both android_tutorial_camera and android_tutorial_map_viewer.

Specifically: Unsupported method: AndroidArtifact.getOutputFile(). The version of Gradle you connect to does not support that method.

As per the instructions on the wiki, I am using android-studio version 0.6.1. The gradle build messages show that "Tooling API is using target Gradle version 1.11" I don't know how to check for the Android Gradle Plugin version (it should be 0.11 to work with studio version 0.6.1), but Gradle verision 1.11 is in the right range for Android Gradel plugin version 0.11

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-12-13 23:28:12 -0600

dan gravatar image

In the build.gradle files, located in the following directories,

~/rjandroid/src/android_core
~/rjandroid/src/android_extras
~/rjandroid/src/ROSTango/ROSTango/src/rostango

I added this to the dependencies section:

classpath 'com.android.tools.build:gradle:0.11.+'

and that by itself fails, but when you also add

jcenter()

to the repositories section, the programs load onto the Tango and run.

I have no idea whether this will actually work, but if it does, then these seem like very odd things for the repo to have left out of the build.grable file.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-12-10 22:09:55 -0600

Seen: 715 times

Last updated: Dec 13 '14