在构建android应用程序时得到一个分级错误。
以下错误:
已经存在的
程序类型: dagger.Reusable
任何形式的帮助都会非常感谢。
应用程序/分级
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':transport')
implementation 'com.android.support:appcompat-v7:23.3.0'
compile files('libs/org.eclipse.paho.android.service-1.1.1.jar')
compile files('libs/org.eclipse.paho.client.mqttv3-1.1.1.jar')
compile 'com.google.protobuf:protobuf-java:3.2.0'
implementation ('com.google.dagger:dagger:2.23'){
exclude group: "javax.inject", module: "javax.inject"
}
annotationProcessor ("com.google.dagger:dagger-compiler:2.23"){
// exclude group: "javax.inject", module: "javax.inject"
}
}发布于 2020-02-11 12:09:34
您不应该像在代码段中那样使用implementation范围中的Dagger 2依赖项。
有问题的行文:
implementation ('com.google.dagger:dagger:2.23'){
exclude group: "javax.inject", module: "javax.inject"
}https://stackoverflow.com/questions/60150313
复制相似问题