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

Importing android_core failed

asked 2013-11-12 02:15:00 -0500

dtc gravatar image

updated 2013-11-17 11:58:54 -0500

Error on opening old working android_core project in Android Studio 0.3.4 (also in 0.2.0) Error on importing new android_core project in Android Studio 0.3.4 (also in 0.2.0)

Till last week I was able to use the android_core project which I imported to Android Studio 0.3.1. But when I opened it again yesterday (09.11)(in Android Studio 0.3.1) I was getting errors. On Sunday (10.11) I cloned a new android_core from the Github but I could not import it to Android Studio 0.3.1 (no error in catkin_make). I upgraded to Android Studio 0.3.4 (also to 0.3.5) but the same errors on opening the old working android_core and also for importing a new one.

[Error on importing] "Resolver error Could not find any version that matches org.ros.rosjava_bootstr ap:gradle_plugins:[0.1,0.2).
Required by: :android_core:unspecified
"

[Error on opening an old android_core] "Gradle 'android_core' project refresh failed: Could not execute build using Gradle distribution 'http://ser.../gradle-1.8-all.zip'
A problem occurred configuring project ':android_acm_serial'.
A problem occurred configuring project ':android_acm_serial'.
Failed to notify project evaluation listener.
A problem occurred configuring project ':android_honeycomb_mr2'.
Failed to notify project evaluation listener.
A problem occurred configuring project ':android_gingerbread_mr1'.
Failed to notify project evaluation listener.
Could not resolve all dependencies for configuration ':android_gingerbread_mr1:_DebugCompile'. Could not find any version that matches org.ros.rosjava_messages:sensor_msgs:1.10.+.
Required by: org.ros.android_core:android_gingerbread_mr1:0.1.0"

Then I degraded to Android Studio 0.2.0 tried again but it gave again the same errors.

I am using Ubuntu 12.04 and new to ROS. Is there any solution for the above errors ? Thanks, dtc.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-11-19 08:00:22 -0500

dtc gravatar image

Should use "./studio.sh" instead of "sudo ./studio.sh"

edit flag offensive delete link more
1

answered 2013-11-14 21:17:58 -0500

Daniel Stonier gravatar image

Did you source setup.bash?

Make sure you do the following steps:

1) catkin_make the workspcae 2) source setup.bash 3) run android studio from the shell

When building from android studio, it just directly uses gradle. The gradle setup for the rosjava stacks is using some of the ros environment variables so you'll need to source the setup.bash.

edit flag offensive delete link more

Comments

Yes I done that, catkin_make //Build successful source /devel/setup.bash sudo ./studio.sh It is helpful if you can confirm that the Import is still working. I am using the link http://wiki.ros.org/android/Tutorials/hydro/Installation - Ros Development Environment. Now planing to reinstall everything

dtc gravatar image dtc  ( 2013-11-16 05:51:15 -0500 )edit

Same errors even after reinstalling Ubuntu, Ros Hydro, rosjava (used ros-shadow-fixed) and AndroidStudio-0.3.2 (catkin_make successful). Is there any other way than the "5.1 Fat Workspace" (or a better explanation for "5.2 Diet Workspace") for using ROS in Android, may be with Eclipse? <thanks, dtc="">

dtc gravatar image dtc  ( 2013-11-17 11:55:20 -0500 )edit

I should use "./studio.sh" instead of "sudo ./studio.sh". "sudo ./studio.sh" gives the errors which I mentioned above. Link, http://wiki.ros.org/android | http://rosjava.github.io/android_core/latest/ | http://wiki.ros.org/android/Tutorials/hydro/Installation%20-%20Ros%20Development%20Environment

dtc gravatar image dtc  ( 2013-11-19 07:56:27 -0500 )edit

Glad to hear you worked it out.

Daniel Stonier gravatar image Daniel Stonier  ( 2013-11-19 17:24:44 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-11-12 02:15:00 -0500

Seen: 3,276 times

Last updated: Nov 19 '13