答案 0 :(得分:5)
尝试在buildscript.repositories附件中添加mavenCentral(),就像这样。将错误日志输出为弹出答案
buildscript {
repositories {
jcenter()
mavenCentral() // This repo should have the gradle plugin
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}