Plugin with id 'com.android.application' not found


Plugin with id ‘com.android.application’ not found

这个错误是build.gradle造成的

打开报错的项目的build.gradle,看看有没有buildscript{}

如果没有加上以下这段,在 dependencies 后面

1
2
3
4
5
6
7
8
buildscript {
repositories {
mavenCentral() // or jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0' //last version Jan 2016
}
}