编译期间已存在的程序类型

时间:2018-05-11 11:17:57

标签: android gradle android-studio-3.0

我在构建期间遇到一些奇怪的情况。 这是消息:

  

程序类型已存在:org.simpleframework.xml.Attribute

dependencies {
    implementation 'com.android.support:multidex:1.0.1'
    implementation 'com.android.support:appcompat-v7:25.4.0'
    implementation 'com.google.android.gms:play-services:11.8.0'
    implementation 'com.google.gms:google-services:3.3.1'
    implementation 'com.facebook.fresco:fresco:0.6.0'

    implementation files('libs/activation.jar')
    implementation files('libs/additionnal.jar')
    implementation files('libs/mail.jar')

    implementation project(':CouponingModule')
    implementation 'com.google.firebase:firebase-messaging:11.8.0'
    // https://mvnrepository.com/artifact/org.simpleframework/simple-xml
    implementation('org.simpleframework:simple-xml:2.7.1') {
        exclude group: 'stax', module: 'stax-api'
        exclude group: 'xpp3', module: 'xpp3'
    }
}

1 个答案:

答案 0 :(得分:1)

原因是某些库具有相似的依赖关系,因此编译器无法选择合适的库。

enter image description here