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

android studio build error

asked 2013-12-02 00:07:12 -0500

Lunbo gravatar image

updated 2013-12-12 20:06:26 -0500

tfoote gravatar image

I was so happy to see that there is a tutorial teaching you how to develop from Android Studio without a ROS environment.

h ttp://wiki.ros.org/android/Tutorials/hydro/Installation%20-%20Android%20Studio%20Development%20Environment

Follow the spec, I changed the build.gradle in the new project to the following

> buildscript { 
>     repositories {
>         mavenCentral()
>     }
>     dependencies {
>        classpath 'com.android.tools.build:gradle:0.6.+'
>     } } apply plugin: 'android' repositories {
>     maven {
>         url 'h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master'
>     }
>     mavenCentral() } android {
>     compileSdkVersion 19
>     buildToolsVersion "19.0.0"
>     defaultConfig {
>         minSdkVersion 7
>         targetSdkVersion 19
>     } } dependencies {
>     compile 'org.ros.android_core:android_gingerbread_mr1:0.1.+'
>     compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
>     compile 'org.ros.rosjava_core:rosjava:0.1.+'
>     compile 'com.android.support:appcompat-v7:+'
> }

Then there is an error when i tried to build it:

> Gradle: A problem occurred configuring project ':CameraImuManager'.
> Failed to notify project evaluation listener.
   > Could not resolve all dependencies for configuration ':CameraImuManager:_DebugCompile'.
      > Could not resolve org.ros.android_core:android_gingerbread_mr1:0.1.+.
        Required by:
            CameraImuManagerProject:CameraImuManager:unspecified
         > Could not resolve org.ros.android_core:android_gingerbread_mr1:0.1.+.
            > Could not parse POM h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/android_core/android_gingerbread_mr1/0.1.2/android_gingerbread_mr1-0.1.2.pom
               > 已经看到 doctype。
      > Could not resolve org.ros.android_core:android_honeycomb_mr2:0.1.+.
        Required by:
            CameraImuManagerProject:CameraImuManager:unspecified
         > Could not resolve org.ros.android_core:android_honeycomb_mr2:0.1.+.
            > Could not parse POM h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/android_core/android_honeycomb_mr2/0.1.2/android_honeycomb_mr2-0.1.2.pom
               > 已经看到 doctype。
      > Could not resolve org.ros.rosjava_core:rosjava:0.1.+.
        Required by:
            CameraImuManagerProject:CameraImuManager:unspecified
         > Could not resolve org.ros.rosjava_core:rosjava:0.1.+.
            > Could not parse POM h ttps://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/rosjava_core/rosjava/0.1.6/rosjava-0.1.6.pom
               > 已经看到 doctype。

I use Android Studio on Ubuntu 12.04, thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2013-12-02 22:10:07 -0500

Hi Lunbo,

try 'https://...' instead of 'h ttps://...'.

edit flag offensive delete link more

Comments

Actually, I leave it like that on purpose. I cannot post URL since I am new to this community. Sorry for bringing confusing post.

Lunbo gravatar image Lunbo  ( 2013-12-03 20:09:46 -0500 )edit

Thanks! it works for me.

Lunbo gravatar image Lunbo  ( 2013-12-05 11:45:17 -0500 )edit
1

answered 2013-12-04 05:09:13 -0500

ShivrajDalu gravatar image

try this it helprd for me just remember to change android{} accordingly buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.6.+' } } apply plugin: 'android' repositories { maven { url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master' } mavenCentral() } android { compileSdkVersion 18 buildToolsVersion "18.1.1" defaultConfig { minSdkVersion 7 targetSdkVersion 18 } } dependencies { compile 'com.android.support:appcompat-v7:+' compile 'org.ros.android_core:android_gingerbread_mr1:0.1.+' compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+' compile 'org.ros.rosjava_core:rosjava:0.1.+' }

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-12-02 00:07:12 -0500

Seen: 1,796 times

Last updated: Dec 04 '13