Getting "Gradle DSL method not found : 'android()" error, well then you are at right place to solve the things :)
Solution:
- Open the project top level 'build.gradle' file
- Remove the below configuration android() method
// Delete these lines from project top level 'build.gradle' file
android {
compileSdkVersion 23
buildToolsVersion '22.0.1'
}
- Save the changes and re-compile