我无法包含'com.google.android.gms:play-services-places:15.0.1'项目。我收到以下错误
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-places:15.0.1.
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-places:15.0.1.
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-places:15.0.1.
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.google.android.gms:play-services-places:15.0.1.
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-places:15.0.1. `
注意:如果我删除 play-services-places:15.0.1 ,它可以正常运行。身份验证服务正常运行。
这就是我所拥有的。
项目级别gradle
classpath 'com.google.gms:google-services:4.0.1'
allprojects {
repositories {
google()
jcenter()
`maven {
url "https://maven.google.com"
}
}
}
应用gradle
dependencies {
implementation 'com.google.android.gms:play-services-places:15.0.1'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
}
apply plugin: 'com.google.gms.google-services'