title: Android Studio Gradle DSL method not found: 'android()' -- Error(17,0)
body: <p>I am attempting to run my project in Android Studio but the error appears below:</p>
  
  <p><img src="https://i.stack.imgur.com/TUvnz.png" alt="enter image description here"></p>
  
  <p>I have followed many sources just to get this to run and have wound up here, but do not know what else to do. </p>
  
  <p>How can I configure this project to run?</p>
  
  <p><strong>build.gradle:</strong></p>
  
  <pre><code>    // Top-level build file where you can add configuration options common to all sub-projects/modules.
      buildscript {
          repositories {
              mavenCentral()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:0.9.+'
          }
      }
  
      allprojects {
          repositories {
              mavenCentral()
          }
      }
  
      android {
          compileSdkVersion 19
          buildToolsVersion "19.1" 
      }
  </code></pre>
  
  <p><strong>settings.gradle:</strong></p>
  
  <pre><code>include ':app'
  </code></pre>
  
  <p><strong>local.properties:</strong></p>
  
  <pre><code>sdk.dir=C\:\\Users\\KJA\\AppData\\Local\\Android\\sdk
  </code></pre>
  
  <p><strong>gradle.propertes:</strong></p>
  
  <pre><code># IDE (e.g. Android Studio) users:
  # Settings specified in this file will override any Gradle settings
  # configured through the IDE.
  
  # For more details on how to configure your build environment visit
  # http://www.gradle.org/docs/current/userguide/build_environment.html
  
  # Specifies the JVM arguments used for the daemon process.
  # The setting is particularly useful for tweaking memory settings.
  # Default value: -Xmx10248m -XX:MaxPermSize=256m
  # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
  
  # When configured, Gradle will run in incubating parallel mode.
  # This option should only be used with decoupled projects. More details, visit
  # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
  # org.gradle.parallel=true
  </code></pre>