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

ShivrajDalu's profile - activity

2013-12-04 05:09:13 -0500 commented answer android studio build error

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.+' }

2013-12-04 05:07:32 -0500 received badge  Supporter (source)
2013-12-04 04:58:40 -0500 answered a question android studio build error

change your sub class build.gradle to

Blockquote

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.+' }

Blockquote

worked for me just remember that following part will not be same in each andrd studio, so change it accordingly

android { compileSdkVersion 18 buildToolsVersion "18.1.1"

defaultConfig {
    minSdkVersion 7
    targetSdkVersion 18
}