I'm trying to integrate Mobile Ads SDK on my personal app. however, I'm having failed to resolve com.google.android.gms:play-services-add:11.6.0
error when syncing module:app Gradle. Please help me how to solve this issue.
Asked
Active
Viewed 3,509 times
0

Android Enthusiast
- 4,826
- 2
- 15
- 30
-
Simply click install repo and sync and it will be fixed – Derek Nov 10 '17 at 20:34
-
Thank you Brother! – Android Enthusiast Nov 11 '17 at 15:47
2 Answers
7
Have you tried adding this to your build.gradle options?
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}

Andres Pelaez
- 109
- 2
- 8
2
Look at SDK Manager > SDK Tools if Google Play Services are installed in the newest version. If they're installed, try
compile 'com.google.android.gms:play-services-ads:11.+'
instead of
compile 'com.google.android.gms:play-services-ads:11.6.0'