Answer the question
In order to leave comments, you need to log in
Android. Robospice + ormlite + retrofit Build failed. What should be written in the gradle file?
it is not possible to build a project with a bundle described in the topic.
when compiling the project I get
.....
com.android.dex.DexException: Multiple dex files define /support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/java/jdk1.8.0_25/bin/java'' finished with non-zero exit value 2
on Habré they wrote that everything should work well, but it’s not even possible to build it. Tried exclusions from here https://github.com/stephanenicolas/robospice/issues/365The result is the same. Connoisseurs, if someone built, share the gradle file, how these 3 libs should be correctly assembled. If there is a working test project, it will also be nice. May the Force be with you.
Answer the question
In order to leave comments, you need to log in
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "insales.ru.robospiceexample"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
// multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:22.2.0'
compile ('com.octo.android.robospice:robospice-retrofit:1.4.6') {
exclude group: 'org.apache.commons', module: 'commons-io'
}
compile ('com.octo.android.robospice:robospice-ormlite:1.4.6') {
exclude group: 'org.apache.commons', module: 'commons-io'
}
compile 'commons-io:commons-io:1.3.2'
}
app.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
repositories{
mavenLocal()
mavenCentral()
}
allprojects {
repositories {
jcenter()
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question