Ask Your Question
0

Still can not build android_tutorial_camera

asked 2014-11-08 20:09:00 -0600

mango gravatar image

updated 2014-11-09 11:48:19 -0600

I've been trying on and off for more than a week to get the android core projects built. I need to send video from my android phone over ros. Every time I have followed the ros java and android tutorials to a T, but attempting to build the tutorials gives me:

Build Failed: Could not find any version that matches org.ros.rosjava_bootstrap:gradle_plugins:[0.1,0.2]

I have found the exact same question asked on ros answers, but none of the other suggestions (change the groovy version, catkin_make the workspace, etc) work. Can anyone help me with this or suggest an alternate way of obtaining the ros android camera apk?

Edit: After looking around, I've found multiple versions of instructions on what to do to build the android_core tutorials. After installing rosjava and android studio/apk, what do I do? Do I simply import the project, or catkin_make the specific tutorial and source its setup.bash?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-12-15 22:11:16 -0600

dan gravatar image

You do a catkin_make and, if that goes OK, you can import the project into android studio. Make sure you are using only android studio version 0.6.1, otherwise the repo fails. Also, looks like you may have a typo in the build.gradle file in your android_core directory, there is a bracket " ]" in your line instead of a parentheses ")"

In that file, under dependencies, you should have

classpath group: 'org.ros.rosjava_bootstrap', name: 'gradle_plugins', version: '[0.1,0.2)'

You may also need to add this dependency: classpath 'com.android.tools.build:gradle:0.11.+'

See this question and answer for details: http://answers.ros.org/question/199283/ros-tango-samples-dont-run/

edit flag offensive delete link more
0

answered 2015-02-27 05:17:29 -0600

sergi23 gravatar image

I have a very similar problem. I'm following the tutorial: http://wiki.ros.org/sig/Rosjava/Andro... and when i get the step 2.5 Compile some libraries from android_core: when i do: $ cd android_gingerbread_mr1 $ ../gradlew debug $ cd ../android_honeycomb_mr2 $ ../gradlew debug

I get the following error:

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android_core'.

    Could not resolve all dependencies for configuration ':classpath'. Could not find any version that matches org.ros.rosjava_bootstrap:gradle_plugins:[0.1,0.2). Required by: :android_core:unspecified

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Don't know how to solve it. If someone can help me it would be very helpful.

Tnak you

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

2 followers

Stats

Asked: 2014-11-08 20:09:00 -0600

Seen: 1,050 times

Last updated: Dec 15 '14