我将翻新和匕首集成到了我的一个旧项目中。尝试运行该错误时,我会收到此错误。
Program type already present: com.google.gson.JsonElement
Message{kind=ERROR, text=Program type already present: com.google.gson.JsonElement, sources=[Unknown source file], tool name=Optional.of(D8)}
这是我的构建gradle文件
dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
implementation('com.crashlytics.sdk.android:crashlytics:2.9.2@aar') {
transitive = true
}
// Appflyers Lib
api 'com.appsflyer:af-android-sdk:4.8.3'
// Facebook SDK
api 'com.facebook.android:facebook-android-sdk:4.36.0'
// Support Lib
api 'com.android.support:multidex:1.0.3'
api 'com.android.support:appcompat-v7:27.1.1'
api 'com.android.support:mediarouter-v7:27.1.1'
api 'com.android.support:design:27.1.1'
api 'com.android.support:customtabs:27.1.1'
api 'com.android.support:support-v13:27.1.1'
api 'com.android.support:recyclerview-v7:27.1.1'
api 'com.android.support:cardview-v7:27.1.1'
//Play Service Lib
api 'com.google.android.gms:play-services-cast:16.0.2'
api 'com.google.android.gms:play-services-plus:15.0.1'
api 'com.google.android.gms:play-services-identity:15.0.1'
api 'com.google.android.gms:play-services-base:15.0.1'
api 'com.google.android.gms:play-services-gcm:15.0.1'
api 'com.google.android.gms:play-services-auth:16.0.0'
api 'com.google.android.gms:play-services-ads:15.0.1'
api 'com.google.android.gms:play-services-analytics:16.0.3'
//Firbase Service Lib
api 'com.google.firebase:firebase-core:16.0.3'
api 'com.github.bumptech.glide:glide:4.7.1'
api 'com.android.volley:volley:1.1.0'
api 'com.google.android.gms:play-services-cast-framework:16.0.2'
api 'com.github.amlcurran.showcaseview:library:5.4.3'
api 'com.android.support:percent:27.1.1'
api 'com.apptentive:apptentive-android:4.1.2'
api 'com.urbanairship.android:urbanairship-sdk:8.9.6'
implementation project(':library')
implementation project(':swipelistlibrary')
implementation project(':exo_player_library')
implementation 'com.google.dagger:dagger:2.16'
annotationProcessor 'com.google.dagger:dagger-compiler:2.16'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
}
有人可以指出我该如何解决这个问题?