title: Error:(18, 0) Gradle DSL method not found: 'android()'
body: <p>I have the problem:</p>
  
  <p>Error:(19, 0) Gradle DSL method not found: 'android()'</p>
  
  <p>-The project 'x' may be using a version of gradle thet does not contais the method</p>
  
  <p>Open gradle wrapper file</p>
  
  <p>-The build file may be missing a gradle plugin</p>
  
  <p>Apply gradle plugin</p>
  
  <p>build.gradle:</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.5.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  allprojects {
      repositories {
          jcenter()
      }
  }
  android {
  }
  dependencies {
  }
  </code></pre>
  
  <p>app.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "23.0.0 rc3"
  
      compileOptions {
          encoding "UTF-8"
      }
  
      defaultConfig {
          applicationId "es.albertoramos.pfcalbertoramos"
          minSdkVersion 15
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.2.1'
  }
  </code></pre>
  
  <p>How fix this problem?</p>