我正在通过YouTube上的Android Coding构建Google Maps演示。我构建了该应用程序,但是由于某些原因,我不断收到错误消息
无法将URL'com.google.android.gms:play-services-maps:17.0.0'转换为文件。
这是我的PageDescription
(Project Google Maps Demo):
build.gradle
有人可以帮忙吗? 编辑:复制并粘贴两次相同的代码,这是我实际的build.gradle(module:app)**
这是我的 // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
:
app/build.gradle
答案 0 :(得分:0)
删除此行:
//implementation files('com.google.android.gms:play-services-maps:17.0.0')