androidandroid-gradle-pluginandroid-support-libraryadmobandroid-compatibility

Gradle conflict when using admob 15.0.0 with the lastest support library


I am using 'com.google.android.gms:play-services-ads:12.0.1'. and android support version 27.1.1.

when I try to upgrade my ads library to the latest (15.0.0) I get an error saying that I must use the same version specification. See image below.

enter image description here

Is there a way to use the latest version for both the supportLibraries and the play-services-ads ?

Note that this problem does not exist when i use the play-services-ads version 12.0.1


Solution

  • You can try overriding the conflicted support library by adding the support library to your dependencies block:

    implementation 'com.android.support:customtabs:27.1.1'