title: Gradle DSL method not found: android()
body: <p>Any suggestions to fix this problem:
  I am getting this error in android studio after importing Project</p>
  
  <p>Error:(16, 0) Gradle DSL method not found: 'android()'
  Possible causes:<li>The project 'LoginActivity' may be using a version of Gradle that does not contain the method.
  Gradle settings</li><li>The build file may be missing a Gradle plugin.
  Apply Gradle plugin</li></p>
  
  <pre><code>// 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'
  </code></pre>
  
  <p>There is a bar notification which says: Gradle project sync failed. Basic fuctionality (eg: editing, debugging) will not work properly.</p>
  
  <p>Please help me to get rid of this problem. Thanks!</p>