DupelicateEntry java.util.zip.ZipException / android / support / v13 / view / DragAndDropPermissionCompat.class的问题

时间:2018-03-06 05:16:13

标签: android

我尝试排除很多选项,例如

{exclude module: 'support-v4'
exclude module: 'support-v13'}

但这里没有任何作用。这是我的build.gradle(Module:app) script:

dependencies {
    compile ('com.android.support:design:24.0.0'){
     exclude module: 'support-v4'
        exclude module: 'support-v13'
    }
    compile files('libs/httpclient-4.3.6.jar')
    compile files('libs/httpcore-4.3.3.jar')
    compile files('libs/httpmime-4.3.6.jar')
    //noinspection GradleCompatible
    compile fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    compile 'com.android.support:appcompat-v7:27.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:design:27.0.2'
    compile 'com.android.support:support-v4:27.0.2'
    compile 'junit:junit:4.12'
    compile 'com.mcxiaoke.volley:library:1.0.19'
    compile 'com.facebook.android:facebook-login:4.31.0'
    compile 'com.facebook.android:facebook-share:4.31.0'
    compile 'com.facebook.android:facebook-core:4.31.0'
    compile 'com.google.firebase:firebase-crash:11.8.0'
    //noinspection UseOfBundledGooglePlayServices
    compile "com.google.android.gms:play-services:11.8.0"
    compile 'com.android.support.test.espresso:espresso-core:3.0.1'
    compile 'com.android.support.test:runner:1.0.1'
    compile 'com.github.bumptech.glide:glide:4.5.0'
    compile 'com.github.Mariovc:ImagePicker:1.1.1'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.hbb20:ccp:2.1.1'
    compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
    compile 'com.github.zomato:androidphotofilters:1.0.1'
    compile 'com.wdullaer:materialdatetimepicker:3.4.1'
    compile 'com.github.f0ris.sweetalert:library:1.5.1'
    compile 'com.karumi:dexter:4.2.0'
    compile 'de.hdodenhof:circleimageview:2.2.0'
    compile "com.squareup.picasso:picasso:2.5.2"
    compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
    compile 'com.lyft:scissors:1.1.1'
    compile 'com.facebook.android:facebook-android-sdk:4.31.0'
    compile 'com.jakewharton:butterknife:8.8.1'
}
apply plugin: 'com.google.gms.google-services'

每当我构建debug.apk时,它会给我错误:

请帮助我。

1 个答案:

答案 0 :(得分:1)

删除重复的依赖项并为所有依赖项保留相同的版本

dependencies {
        compile files('libs/httpclient-4.3.6.jar')
        compile files('libs/httpcore-4.3.3.jar')
        compile files('libs/httpmime-4.3.6.jar')
        //noinspection GradleCompatible
        compile fileTree(dir: 'libs', include: ['*.jar'])
        //noinspection GradleCompatible
        compile 'com.android.support:appcompat-v7:27.1.0'
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        compile 'com.android.support:design:27.1.0'
        compile 'com.android.support:support-v4:27.1.0'
        compile 'junit:junit:4.12'
        compile 'com.mcxiaoke.volley:library:1.0.19'
        compile 'com.facebook.android:facebook-login:4.31.0'
        compile 'com.facebook.android:facebook-share:4.31.0'
        compile 'com.facebook.android:facebook-core:4.31.0'
        compile 'com.google.firebase:firebase-crash:11.8.0'
        //noinspection UseOfBundledGooglePlayServices
        compile "com.google.android.gms:play-services:11.8.0"
        compile 'com.android.support.test.espresso:espresso-core:3.0.1'
        compile 'com.android.support.test:runner:1.0.1'
        compile 'com.github.bumptech.glide:glide:4.5.0'
        compile 'com.github.Mariovc:ImagePicker:1.1.1'
        compile 'com.android.support:multidex:1.0.1'
        compile 'com.hbb20:ccp:2.1.1'
        compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
        compile 'com.github.zomato:androidphotofilters:1.0.1'
        compile 'com.wdullaer:materialdatetimepicker:3.4.1'
        compile 'com.github.f0ris.sweetalert:library:1.5.1'
        compile 'com.karumi:dexter:4.2.0'
        compile 'de.hdodenhof:circleimageview:2.2.0'
        compile "com.squareup.picasso:picasso:2.5.2"
        compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
        compile 'com.lyft:scissors:1.1.1'
        compile 'com.facebook.android:facebook-android-sdk:4.31.0'
        compile 'com.jakewharton:butterknife:8.8.1'
    }
    apply plugin: 'com.google.gms.google-services'