encountered this problem when I imported the project today. After a long time, I finally finished
find your previous project open, copy the contents of build.gradle into this project, if there is no project before, you can refer to my previous blog to solve
// 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
}
p>
div>