复制的重复文件 - Bouncy Castle(bcpkix-jdk15on-1.48.jar) - 我该如何解决?

时间:2016-04-22 15:31:59

标签: java android gradle

所以我收到这条烦人的消息(消息底部的完整消息),我不知道哪些库包含那些bouncycastle文件(我没有自己直接包含它们),我&# 39;猜测其中两个包含相同文件的不同版本? :P

我如何知道包含哪些包/库?我该如何解决这个问题?

以下是build.grade文件:

应用级别:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "dor.only.dorking.android.profilemanager"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
}
apply plugin: 'com.google.gms.google-services'
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.android.support:design:23.2.1'
    compile 'com.facebook.android:facebook-android-sdk:4.+'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.android.gms:play-services-auth:8.3.0'
    compile 'com.google.api-client:google-api-client:1.19.1'
    compile 'com.google.apis:google-api-services-plus:v1-rev375-1.21.0'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.google.gms:google-services:2.1.0-beta3'
}

项目级别:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0'
        classpath 'com.google.gms:google-services:2.1.0-beta3'



        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

这是错误消息(Gradle的输出,我正在使用Android Studio):

com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:在APK META-INF / BCKEY.DSA中复制的重复文件     File1:C:\ Program Files \ Android \ Android Studio \ gradle \ m2repository \ org \ bouncycastle \ bcpkix-jdk15on \ 1.48 \ bcpkix-jdk15on-1.48.jar     File2:C:\ Program Files \ Android \ Android Studio \ gradle \ m2repository \ org \ bouncycastle \ bcprov-jdk15on \ 1.48 \ bcprov-jdk15on-1.48.jar

0 个答案:

没有答案