重复条目:android/support/annotation/AnyRes.class

重复条目:android/support/annotation/AnyRes.class,android,duplicates,android-gradle-plugin,android-multidex,Android,Duplicates,Android Gradle Plugin,Android Multidex,我不知道这个错误是什么意思 Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: android/support/annotation/AnyRes.class 这是我的库依赖项 dependencies { compile fileTree(dir: 'libs', include: ['*.

我不知道这个错误是什么意思

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/annotation/AnyRes.class
这是我的库依赖项

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.squareup.picasso:picasso:2.5.2'
     compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.ms-square:etsyblur:0.1.2'
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:cardview-v7:22.2.0'
    compile 'com.android.support:recyclerview-v7:22.2.0'
    compile 'com.android.support:support-v4:22.2.1'
    compile 'com.squareup.okhttp:okhttp:2.0.0'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.google.code.gson:gson:2.3'
    compile 'org.apache.commons:commons-lang3:3.3.2'
    compile 'com.google.android.gms:play-services:8.1.0'
    compile 'com.marshalchen.ultimaterecyclerview:library:0.3.4'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.facebook.android:facebook-android-sdk:4.1.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.google.android.gms:play-services-analytics:8.1.0'
    compile 'joda-time:joda-time:2.8.2'
    compile 'com.google.android.gms:play-services-identity:8.1.0'
    compile 'com.google.android.gms:play-services-plus:8.1.0'
}

任何帮助都将不胜感激。

如果
Android中出现任何
重复条目
错误
,都是因为您有两次或更多次相同的
可用,独立或包含在另一个库中

任何
重复条目
Android
中发生错误,因为您有2倍或更多倍的相同
可用,独立或包含在另一个库中

请在使用v7时尝试从gradle文件中删除支持v4

如果运行/gradlew-q app:dependencies,请在使用v7时尝试从gradle文件中删除支持v4,您会发现,播放服务库有大量可传递的依赖项。要缓解这种情况,请在build.gradle中添加以下内容:

compile('com.google.android.gms:play services:8.1.0'){
排除组:“com.android.support”,模块:“support annotations”

}

如果您运行/gradlew-q app:dependencies,您将发现播放服务库有大量可传递的依赖项。要缓解这种情况,请在build.gradle中添加以下内容:

compile('com.google.android.gms:play services:8.1.0'){
排除组:“com.android.support”,模块:“support annotations”

}

您是否已将任何jar添加到您的libs文件夹中?如果是,您是否也可以列出它们?我在libs文件夹中有httpclient-4.3.6.jar httpcore-4.3.3.jar httpmime-4.3.6.jar您是否已将任何jar添加到您的libs文件夹中?如果是,您是否也可以列出它们?我在libs文件夹中有httpclient-4.3.6.jar httpcore-4.3.3.6.jar httpmime-4.3.6.jar。Gradle应该优雅地处理
排除
语句。那又怎样呢。Gradle应该优雅地处理
排除
语句。