Android DupelicateEntry/DragAndDropPermissionCompat.class出现问题

Android DupelicateEntry/DragAndDropPermissionCompat.class出现问题,android,Android,我使用了两个基于图像的库,如imageFilter、ImagePicker、imageCropper,但这会导致可能的重复错误,无法构建apk。我已经排除了support-v4和support-v13,但没有任何效果,这是我的build.gradle(模块:app)脚本: dependencies { compile ('com.android.support:design:24.0.0'){ exclude module: 'support-v4' exclu

我使用了两个基于图像的库,如imageFilter、ImagePicker、imageCropper,但这会导致可能的重复错误,无法构建apk。我已经排除了support-v4和support-v13,但没有任何效果,这是我的
build.gradle(模块:app)脚本:

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'
    //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.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'
  

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

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'

为什么要同时添加
com.android.support:design:24.0.0
com.android.support:design:27.0.2
呢?为什么要添加
design:24.0.0
design:27.0.2
。还有一些混合版本总是使用相同的版本,每个支持库都使用
27.1.0
。删除重复条目后会出现相同的错误@OmInfowaveDevelopers@Ibrahim,你能指出那些不必要的吗?@OmInfowaveDevelopers我用的是{classpath'com.android.tools.build:gradle:2.3.3'}将其更新为最新版本。谢谢大家的及时回复。