title: The project may be using a version of Gradle that does not contain the method 'compileSdkVersion()'
body: <p>I'm facing this issue when trying to run a project originally made on Eclipse ADT.</p>
  
  <pre><code>Error:(17, 0) Gradle DSL method not found: 'compileSdkVersion()'
  Possible causes:&lt;ul&gt;&lt;li&gt;The project 'TaxiAndroidOpen-master' may be using a version of Gradle that does not contain the method.
  &lt;a href="open.wrapper.file"&gt;Open Gradle wrapper file&lt;/a&gt;&lt;/li&gt;&lt;li&gt;The build file may be missing a Gradle plugin.
  &lt;a href="apply.gradle.plugin"&gt;Apply Gradle plugin&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I already converted this to Android Studio gradle system.</p>
  
  <p>But I cannot run it, nor compile it, because of this error, here's the gradle generated:</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.0.0'
     }
  }
  allprojects {
  repositories {
      jcenter()
     }
  }
  
  ext {
  compileSdkVersion 17
  buildToolsVersion '18.1.0'
  }
  dependencies {
  }
  </code></pre>
  
  <p>I've found some other posts here on SO, with similar errors, but no one has this specific one.</p>
  
  <p>I'm using Android Studio 1.0.2, x86.</p>
  
  <p>Anybody can shed some light on this?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Updated build.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 17
  buildToolsVersion "21.1.2"
  
  defaultConfig {
      applicationId "com.opentaxi.android"
      minSdkVersion 9
      targetSdkVersion 19
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
      }
  }
  }
  
  dependencies {
  compile project(':comtaxibulgariamap_mapsforge_044201406271417533')
  compile files('libs/littlefluffylocationlibrary_r15.jar')
  }
  </code></pre>