failed to resolve com.google.android.gms:play-services-add:11.6.0 [duplicate]

﹥>﹥吖頭↗ 提交于 2020-01-03 05:46:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!