Eclipse的工程导入到AS中出现这样的错误Error:(1, 0) Plugin with id 'com.android.application' not found. 查了些资料发现了解决办法:
在build.gradle中添加top level
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
}
}
allprojects {
repositories {
mavenCentral()
}
}
添加后便可以运行工程了。