android studio build error
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!