今天导入项目的时候遇到这个问题,搞了半天终于搞好了
找到自己之前的一个项目打开,将build.gradle的内容复制到这个项目里面,如果之前没有项目,可以参考我之前的博客解决
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
// 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
}