Android Studio Development
Hello, i tried to build an app with Android Studio like it is described in http://wiki.ros.org/android/Tutorials... .
I also modified the dependencies to match the workaround but i still get the error when i try to build it. Then i get always following error message:
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/opt/homebrew-cask/Caskroom/android-studio/0.8.6 build-135.1339820/Android Studio.app/sdk/build-tools/android-4.4W/dx --dex --output /Users/TheCurl/git/Ros/app/build/intermediates/pre-dexed/debug/xml-apis-1.0.b2-b76fbe8f744c59044b7848bb585dd56e032743cb.jar /Users/TheCurl/.gradle/caches/modules-2/files-2.1/xml-apis/xml-apis/1.0.b2/3136ca936f64c9d68529f048c2618bd356bf85c9/xml-apis-1.0.b2.jar
Error Code:
1
Output:
trouble processing "javax/xml/parsers/DocumentBuilder.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
My build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.TheCurl.ros"
minSdkVersion 13
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master'
}
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:20.0.0'
compile 'org.ros.android_core:android_gingerbread_mr1:[0.1,0.2)'
compile('org.ros.android_core:android_honeycomb_mr2:0.1.+'){
exclude group: 'junit'
exclude group: 'xml-apis'
}
compile 'org.ros.rosjava_core:rosjava:[0.1,0.2)'
}