我在新的更新的稳定Android Studio中打开了旧的工作应用
程序类型已经存在:com.google.ads.AdRequest$Gender
Message{kind=ERROR, text=Program type already present: com.google.ads.AdRequest$Gender, sources=[Unknown source file], tool name=Optional.of(D8)}
我只更改build.gradle文件编译为实现字
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha2'
}