“显示”;程序类型已存在:android.arch.core.BuildConfig“;重建应用程序时出错

“显示”;程序类型已存在:android.arch.core.BuildConfig“;重建应用程序时出错,android,android-studio,Android,Android Studio,当我重建我的项目时..我收到以下错误消息。任何帮助都会很感激解决这个问题。我也根据这个实现了房间持久性库 ---构建窗口--- ---日志--- ---依赖关系--- --编辑-- Program type already present: android.arch.core.BuildConfig Message{kind=ERROR, text=Program type already present: android.arch.core.BuildConfig, sources=[Unk

当我重建我的项目时..我收到以下错误消息。任何帮助都会很感激解决这个问题。我也根据这个实现了房间持久性库

---构建窗口---

---日志---

---依赖关系---

--编辑--

Program type already present: android.arch.core.BuildConfig
Message{kind=ERROR, text=Program type already present: 
android.arch.core.BuildConfig, sources=[Unknown source file], tool 
name=Optional.of(D8)}
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at ...
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.onesignal:OneSignal:3.9.2'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-crash:16.0.1'

implementation 'com.google.firebase:firebase-invites:16.0.1'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'android.arch.persistence.room:runtime:' + rootProject.archRoomVersion
annotationProcessor 'android.arch.persistence.room:compiler:' + rootProject.archRoomVersion
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.android.support:support-v4:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
我将包含以下代码以指出错误的来源

--构建:渐变(项目)--

Program type already present: android.arch.core.BuildConfig
Message{kind=ERROR, text=Program type already present: 
android.arch.core.BuildConfig, sources=[Unknown source file], tool 
name=Optional.of(D8)}
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at ...
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.onesignal:OneSignal:3.9.2'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-crash:16.0.1'

implementation 'com.google.firebase:firebase-invites:16.0.1'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'android.arch.persistence.room:runtime:' + rootProject.archRoomVersion
annotationProcessor 'android.arch.persistence.room:compiler:' + rootProject.archRoomVersion
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.android.support:support-v4:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

可以通过更新以下内容来解决此问题:

--构建:渐变(项目)--

问题在于提供的教程最近没有更新