问题
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.
回答1:
Have you tried to add this to your build.gradle options?
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
回答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'
来源:https://stackoverflow.com/questions/47230692/failed-to-resolve-com-google-android-gmsplay-services-add11-6-0