This problem is caused by the Android attribute in the build.gradle file under project. Under normal circumstances, there are only three attributes in the build.gradle file under Project: buildscript, allprojects and dependencies (which are empty in many cases)
The contents are as follows:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
//Configure gradle version
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
allprojects {
repositories {
jcenter()
}
}
dependencies {
}