【发布时间】:2018-11-16 11:54:43
【问题描述】:
buildscript {
repositories {
google()
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
我正在使用上面的 gradle 来构建项目。但是当我尝试构建项目时,出现以下错误。 错误:无法解决:play-services-base-license
我尝试更改存储库的顺序,如下所示:
buildscript {
repositories {
jcenter()
google()
maven {
url "https://maven.google.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
当我这样做时,我收到以下错误。 错误:找不到 intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1)。 在以下位置搜索: https://jcenter.bintray.com/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core-26.0.1.jar
有什么办法可以解决这个问题吗? 提前致谢
【问题讨论】:
-
试试这个
repositories { google() jcenter() maven { url "https://maven.google.com" } } -
即使进行了更改,我也得到了:无法解决:play-services-base-license
-
我已经看过那个帖子并尝试过。它对我不起作用
标签: android-studio android-gradle-plugin jcenter