Duplicate class com.google.android.gms.internal.measurement.zzfq found in modules jetified-firebase-analytics-16.0.4-runtime.jar (com.google.firebase:firebase-analytics:16.0.4) and jetified-play-services-measurement-base-17.1.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.1.0)
Duplicate class com.google.android.gms.internal.measurement.zzfr found in modules jetified-firebase-analytics-16.0.4-runtime.jar (com.google.firebase:firebase-analytics:16.0.4) and jetified-play-services-measurement-base-17.1.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.1.0)
Go to the documentation to learn how to Fix dependency resolution errors.
当我尝试从Firebase工具和Google admob实施adMob时,我的Gradle构建失败 我的Gradle文件:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-ads:17.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'com.google.android.gms:play-services-ads:19.2.0'
}