【发布时间】:2018-10-25 10:34:58
【问题描述】:
我的 Android Studio 项目没有加载这是问题所在:
找不到 com.android.tools.build:gradle:3.0.1。 在以下位置搜索: https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.jar
而我的 build.gradle 是:
buildscript {
repositories {
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
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
请帮忙,谢谢
【问题讨论】:
-
你是不是在管理员模式下打开了AS,然后又试图在正常模式下打开它(如果不是,不要这样做)?这是已知的问题,否则可能只是由于安装问题。