Android support v4 -


i have problem in project. when i'm trying build project error apears in logs:

error:execution failed task ':app:dexdebug'. > com.android.ide.common.internal.loggederrorexception: failed run command:   /users/pawelkoperdowski/documents/android/sdk/build-tools/22.0.1/dx --dex --no-optimize --output /users/pawelkoperdowski/documents/android/superplanner/superplanner-android/app/build/intermediates/dex/debug --input-list=/users/pawelkoperdowski/documents/android/superplanner/superplanner-android/app/build/intermediates/tmp/dex/debug/inputlist.txt   error code:   2   output:   unexpected top-level exception:   com.android.dex.dexexception: multiple dex files define ljavax/inject/provider;   @ com.android.dx.merge.dexmerger.readsortabletypes(dexmerger.java:596)   @ com.android.dx.merge.dexmerger.getsortedtypes(dexmerger.java:554)   @ com.android.dx.merge.dexmerger.mergeclassdefs(dexmerger.java:535)   @ com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:171)   @ com.android.dx.merge.dexmerger.merge(dexmerger.java:189)   @ com.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java:454)   @ com.android.dx.command.dexer.main.runmonodex(main.java:303)   @ com.android.dx.command.dexer.main.run(main.java:246)   @ com.android.dx.command.dexer.main.main(main.java:215)   @ com.android.dx.command.main.main(main.java:106) 

so i've read in 1 of questions here should add gradle file:

configurations {     all*.exclude group: 'com.android.support', module: 'support-v4' } 

but in classes use suport have errors this:

error:(21, 33) error: package android.support.v4.widget not exist 

my gradle file:

apply plugin: 'com.android.application' configurations {     all*.exclude group: 'com.android.support', module: 'support-v4' } android {     compilesdkversion 22     buildtoolsversion '22.0.1'     defaultconfig {         applicationid 'pl.essentialapps.superplanner'         minsdkversion 14         targetsdkversion 22         versioncode 1         versionname '1.0'     }     buildtypes {         release {             minifyenabled true             shrinkresources true             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     productflavors {     }     sourcesets { main { assets.srcdirs = ['src/main/assets', 'src/main/assets/2'] } } }  repositories {     maven {         url "https://mint.splunk.com/gradle/"     } }   dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile files('libs/gson-2.2.4.jar')     compile files('libs/jsr305-1.3.9.jar')     compile project(':facebook')     compile files('libs/guava-18.0.jar')     compile 'com.android.support:appcompat-v7:22.0.0'     compile 'com.google.android.gms:play-services:6.+'     compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'     compile 'com.splunk.mint:mint:4.0.5'     compile 'joda-time:joda-time:2.6'     compile 'com.baoyz.pullrefreshlayout:library:1.0.1'     compile 'org.roboguice:roboguice:3.+'     provided 'org.roboguice:roboblender:3.+'     compile 'com.android.support:support-v4:22.1.0' } 

i thankfull :)


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -