Any suggestions to fix this problem: I am getting this error in android studio after importing Project
Error:(16, 0) Gradle DSL method not found: 'android()' Possible causes:
// 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:1.1.0'
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
android {
    compileSdkVersion 21
    buildToolsVersion '21.0.0'
    dexOptions {
        incremental true
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_6
        targetCompatibility JavaVersion.VERSION_1_6
    }
}
dependencies {
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.android.support:appcompat-v7:21.0.3'
}
apply plugin: 'eclipse'
apply plugin: 'java'
There is a bar notification which says: Gradle project sync failed. Basic fuctionality (eg: editing, debugging) will not work properly.
Please help me to get rid of this problem. Thanks!