TransformException:java.util.zip.ZipException:重复条目:android / support / v4 / util / MapCollections $ ArrayIterator.class

时间:2016-12-08 06:09:25

标签: android

这是我的项目build.gradle文件。每当我在android studio中运行项目时,我得到重复的条目:android / support / v4 / util / MapCollections $ ArrayIterator.class错误

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'
    defaultConfig {
        applicationId "com.aitsolution.bizitapp.bizit"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 14
        versionName "1.13"
        multiDexEnabled = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        dexOptions {
            javaMaxHeapSize "3g"
        }
    }
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }
}
dependencies {
//    compile fileTree(include: ['*.jar'], dir: 'libs')
//    testCompile 'junit:junit:4.12'
    compile files('libs/linkedin-j-android.jar')
    compile files('libs/MobileOcrEngine.jar')
    compile files('libs/signpost-core-1.2.1.1.jar')
    compile files('libs/twitter4j-core-3.0.5.jar')
    compile files('libs/ksoap2_2.6.0.jar')
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.facebook.android:facebook-android-sdk:4.6.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.google.android.gms:play-services:9.0.0'
    compile 'com.google.android.gms:play-services-appindexing:9.0.0'
    compile 'com.android.support:cardview-v7:23.3.+'
    compile 'com.github.bumptech.glide:glide:3.6.1'
    compile 'com.google.code.gson:gson:2.4'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.edmodo:cropper:1.0.1'
}

1 个答案:

答案 0 :(得分:0)

我认为facebook sdk带有v4-support库,不包括那个并试试。

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