编译期间已经存在的程序类型
问题描述:
在构建期间,我有一些奇怪的情况. 这是消息:
I have some strange situation during build time. Here is message:
程序类型已经存在:org.simpleframework.xml.Attribute
Program type already present: 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'
}
}
答
原因是某些库具有相似的依赖关系,因此编译器无法选择适当的依赖关系.
The reason is that some libraries have similar dependencies, therefore the compiler can not choose the appropriate one.