not able to download 'com.google.android.gms:play-services-ads:17.2.1'

770 views
Skip to first unread message

Mayank Ahuja

unread,
Jun 13, 2019, 1:03:58 AM6/13/19
to google-adm...@googlegroups.com
Hi

I have added the following line in dependencies in build.gradle(app) file , but its not able to download the required SDK

implementation 'com.google.android.gms:play-services-ads:17.2.1'

I get the following error in Android Studio :

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-ads:17.2.1. Show Details Affected Modules: app


I also tried to cross verify the links but in https://jcenter.bintray.com/com/google/android/gms , 
 I could not find any sub directory with name as "play-services-ads" can see only sub directory with name as : 

play-services-drive/
play-services-fido/
play-services-maps-license/


Kindly help how to download MobileAds SDk ...

My build.gradle(app) file attached here for reference purpose.

With warm Regards




build.gradle

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 13, 2019, 3:39:50 AM6/13/19
to mayan...@gmail.com, google-adm...@googlegroups.com

Hi Mayank,

Thank you for raising this to us and for sharing your gradle file. I've tried using your gradle file to our sample app, then I removed this line (apply plugin: 'com.google.gms.google-services') and I was able to successfully run the app. Could you try it on your end if it works? If not, please share with me your project file using Reply privately to author option so I could further investigate on my end. You may also refer to this documentation for your reference.

Regards,
Mark Albios
Mobile Ads SDK Team



ref:_00D1U1174p._5001UBn2AP:ref
Reply all
Reply to author
Forward
0 new messages