title: Moving common project properties to global Gradle project in Android Studio
body: <p>I have moved my ADT android project to Android Studio. Now I have a project with 2 modules. Each module has a build.gradle file, where it defines </p>
  
  <pre><code>android {
      compileSdkVersion 19
      buildToolsVersion '19.0.3'
  
      lintOptions {
          checkReleaseBuilds false
      }
  }
  </code></pre>
  
  <p>I want to move this part to my project's build.gralde file so that it looks like this:</p>
  
  <pre><code>apply plugin: 'android'
  
  
  // 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.+'
      }
  }
  
  android {
      compileSdkVersion 19
      buildToolsVersion '19.0.3'
  
      lintOptions {
          checkReleaseBuilds false
      }
  }
  
  allprojects {
      repositories {
          mavenCentral()
      }
  }
  </code></pre>
  
  <p>However, if I remove compileSdkVersion from module gradle files, I get gradle compilation error that this property is missing. How can I fix that?</p>