如何避免android.support.v4.app.ActivityCompatHoneycomb已被添加

时间:2015-04-20 11:27:27

标签: android android-studio build.gradle

Hil all,

这是我的错误:

 Error:Class android.support.v4.app.ActivityCompatHoneycomb has already
 been added to output. Please remove duplicate copies.

我的家属是:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile('com.android.support:support-v4:22.0.0') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    compile ('com.google.android.gms:play-services:7.0.0')
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile files('libs/json-simple-1.1.1.jar')
    compile files('libs/ormlite-android-4.45.jar')
    compile files('libs/ormlite-core-4.45.jar')
    compile files('libs/jackson-databind-2.1.4.jar')
    compile files('libs/jackson-core-2.1.4.jar')
    compile files('libs/jackson-annotations-2.1.4.jar')
    compile files('libs/httpmime-4.1.jar')
    compile files('libs/YouTubeAndroidPlayerApi.jar')
    compile files('libs/paralloidviews.jar')
    compile files('libs/jsr250-api-1.0.jar')
    compile project(':volley')
    compile project(':Android-RSS-Reader-Library-master')
    compile project(':facebook')
    compile project(':Forecast')
    compile project(':headerListView')
    compile project(':library-sliding-menu')
    compile files('libs/panoramagl.jar')
    compile project(':paymentKit_lib')
    compile project(':ProgressWheel-master')
      compile project(':UIL_library')
    compile files('libs/coverflowlibrary.jar')

}

所以在哪里可以找到duplacte副本,你能帮助我吗,我很久以前就为这个错误而烦恼!

1 个答案:

答案 0 :(得分:0)

这很有可能发生,因为您的某个库项目已经包含support-v4。尝试从依赖项中删除compile('com.android.support:support-v4:22.0.0')并检查。这应该可以解决问题