【发布时间】:2019-08-21 09:50:01
【问题描述】:
如何解决这个错误?
无法解决:com.google.android.gms:play-services:16.0.1
我在这里给出了我的依赖截图。请帮帮我..
【问题讨论】:
-
如何解决 -> 不要使用这个依赖。它非常庞大,您只需要较小的组件
标签: android android-gradle-plugin google-play-services
如何解决这个错误?
无法解决:com.google.android.gms:play-services:16.0.1
我在这里给出了我的依赖截图。请帮帮我..
【问题讨论】:
标签: android android-gradle-plugin google-play-services
您可以查看google maven repo
最后一个com.google.android.gms:play-services full-module是12.0.1。
依赖com.google.android.gms:play-services:16.0.1 不存在。
仅使用您需要的单个播放服务组件。
【讨论】:
Add this to project build.gradle
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
}
dependencies {
classpath 'com.google.gms:google-services:4.0.1'
}
}
【讨论】: