The dependencies should be listed in the official AdMob documentation:
The example on that page shows this:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.gms:play-services-ads:18.3.0'
}
And I believe that what you need is only the com.google.android.gms:play-services-ads
dependency in the build.gradle file for the AdMob extension. Ignore the other two lines.
dependencies {
implementation 'com.google.android.gms:play-services-ads:18.3.0'
}
Version 18.3.0 does however use AndroidX and that could cause a conflict with other extensions (maybe). In that case you can try an older version of com.google.android.gms:play-services-ads
. Available versions can be seen here for instance:
https://mvnrepository.com/artifact/com.google.android.gms/play-services-ads