java - Android gradle app:DexDebug error Parse.com -


i have build android app , have error when trying compile app

error:execution failed task ':app:dexdebug'.>com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/library/java/javavirtualmachines/jdk1.7.0_79.jdk/contents/home/bin/java'' finished non-zero exit value 2

this gradle file:

apply plugin: 'com.android.application'  android {     compilesdkversion 22     buildtoolsversion "22.0.1"      defaultconfig {         applicationid ********         minsdkversion 15         targetsdkversion 22         versioncode 5         versionname "1.211"        // multidexenabled true     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  repositories { mavencentral()     maven { url 'https://maven.fabric.io/public' } }  dependencies {     compile 'com.android.support:appcompat-v7:22.2.1'     compile filetree(dir: 'libs', include: ['*.jar'])     compile filetree('src/main/libs')     compile filetree('src/main/libs/picasso-2.5.2.jar')     compile 'com.facebook.android:facebook-android-sdk:4.6.0'     compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'     compile('com.twitter.sdk.android:twitter:1.12.0@aar') {         transitive = true;     }     compile 'com.parse:parsetwitterutils-android:1.10.+' } 

it says on parse.com "add compile 'com.parse:parsetwitterutils-android:1.10.+' gradle dependencies. includes contents of parse-*.jar , com.parse:parse-android:1.10.+ repository, sure remove needed prevent duplicate dependencies, otherwise com.android.dex.dexexception thrown."

and in library have

bolts-android-1.2.0.jar parse-1.9.4.jar picasso-2.5.2.jar commons-io-2.4.jar 

edit: when enable multidex in gradle error

error:execution failed task ':app:packagealldebugclassesformultidex'.> java.util.zip.zipexception: duplicate entry: bolts/aggregateexception.class

when comment line out compile 'com.parse:parsetwitterutils-android:1.10.+' works well

i not sure how rid of error being thrown when add above line can 1 please help.

replace this:

compile 'com.facebook.android:facebook-android-sdk:4.6.0' 

with:

compile ('com.facebook.android:facebook-android-sdk:4.6.0') {     exclude module: 'bolts-android' } 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -