我正在将项目从Android Studio 2.3.3迁移到3.1.3。编译我的项目时,出现以下错误消息:
Program type already present: com.google.common.base.FinalizableReference
Message{kind=ERROR, text=Program type already present: com.google.common.base.FinalizableReference, sources=[Unknown source file], tool name=Optional.of(D8)}
与我的依赖关系有关吗?
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':app-lib')
implementation 'cn.jiguang.sdk:jcore:1.1.2'
implementation 'cn.jiguang.sdk:jpush:3.0.5'
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
implementation 'com.google.android.gms:play-services-base:11.0.0'
implementation 'com.google.code.gson:gson:2.8.0'
implementation "com.google.firebase:firebase-messaging:11.0.0"
implementation 'com.google.guava:guava:20.0'
implementation 'com.navercorp.pulltorefresh:library:3.2.0@aar'
implementation 'com.wdullaer:materialdatetimepicker:2.2.0'
implementation 'net.danlew:android.joda:2.9.4'
implementation 'org.apache.logging.log4j:log4j-api:2.4.1'
annotationProcessor 'org.apache.logging.log4j:log4j-core:2.4.1'
}
答案 0 :(得分:0)
Play Services 11.0.0版本中存在错误。使用11.0.1。那应该可以解决问题。
在以下stackoverflow链接中找到了答案:https://stackoverflow.com/a/44541963/10243401