0

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.enter image description here

Android Enthusiast
  • 4,826
  • 2
  • 15
  • 30

2 Answers2

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'