Google play library dependency error

610 views
Skip to first unread message

Aadi Infotech

unread,
Jun 21, 2019, 8:57:23 AM6/21/19
to Google Mobile Ads SDK Developers
I was trying to use google admobs sdk in my app, as as per this link. https://developers.google.com/admob/android/quick-start?hl=en-US#import_the_mobile_ads_sdk.

In my App, i'm already using the firebase authentication(phone and Google Auth). So when I'm trying to add this line : implementation 'com.google.android.gms:play-services-ads:18.0.0' in my gradle, it gives the following error. 


In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.5.
0]"
, but isn't being resolved to that version. Behavior exhibited by the library will be unknown.


Dependency failing: com.google.android.gms:play-services-measurement-api:16.5.0 -> com.google.android.gms:play-services-
measurement-sdk-api@[16.5.0], but play-services-measurement-sdk-api version was 17.0.0.


The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project '
app' depends onto com.google.android.gms:play-ser...@18.0.0
-- Project '
app' depends onto com.google.firebase:firebase-analytics@{strictly 16.5.0}
-- Project '
app' depends onto com.google.android.gms:play-services-ads@{strictly 18.0.0}
-- Project '
app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 16.5.0}
-- Project '
app' depends onto com.google.android.gms:play-services-measurement-sdk@{strictly 16.5.0}
-- Project '
app' depends onto com.google.android.gms:play-services-measurement-sdk-api@{strictly 17.0.0}
-- Project '
app' depends onto com.google.firebase:fireba...@16.0.9
-- Project '
app' depends onto com.google.android.gms:play-services-ads-lite@{strictly 18.0.0}
-- Project '
app' depends onto com.google.firebase:firebase-core@{strictly 16.0.9}


For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.



Please help.


Thanks

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 21, 2019, 3:57:36 PM6/21/19
to aadiinf...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for reaching out to us. Can you try and reproduce this with our sample apps and if you are can you provide us the exact dependency list? We will then be able to debug this further.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UCYmrS:ref

Werner Harnisch

unread,
Jun 22, 2019, 2:13:13 AM6/22/19
to Google Mobile Ads SDK Developers
Reply all
Reply to author
Forward
0 new messages