Could not find method android() for arguments
<p>I've been trying to import a project to Android Studio and this is where I am stuck, there is a similar question on <a href="https://stackoverflow.com/questions/26243480/could-not-find-method-android-for-arguments-when-building-android-project-from">Stack Overflow</a> but it did not provide a solution to my particular error. </p>

<p>This is my error log:</p>

<pre><code>C:\&lt;some location&gt;\build.gradle

Error:(24, 1) A problem occurred evaluating root project '&lt;project name&gt;'.
&gt; Could not find method android() for arguments [build_4fli1jm76ubcnxesnhqnhie47$_run_closure3@6e71db85] on root project '&lt;project name&gt;'.
Information:BUILD FAILED
</code></pre>

<p>The Gradle sync messages are:</p>

<blockquote>
  <p>Error:(24, 0) Gradle DSL method not found: 'android()' Possible
  causes:<li>The project 'PoojaPeople' 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>
</blockquote>

<p>I'm not too sure where exactly this method <code>android()</code> is located. If it is the one located in Application's <code>build.gradle</code> file, I still don't exactly know where to go from here. Any help is appreciated. </p>

<p>My <code>build.gradle</code> is</p>

<pre><code>buildscript {
    repositories {
        maven { url "http://dl.bintray.com/populov/maven" }
        mavenCentral()
    }
     dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        maven { url "http://dl.bintray.com/populov/maven" }
        mavenCentral()

    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

android {
    compileSdkVersion 17
    buildToolsVersion '23.0.0'
}
dependencies {
    compile files('app/libs/junit-4.12-JavaDoc.jar')
}
apply plugin: 'maven'
</code></pre>