title: Error : cause android.compileSdkVersion is missing
body: <p>I am recently started to work on the Android Studio. When I am doing sync with gradle then it is giving me a error .</p>
  
  <blockquote>
    <p>Error : Cause: android.compileSdkVersion is missing!</p>
  </blockquote>
  
  <p>Guys what could be reason for this, I already have same compileSDKVersion and build tool installed. I see many threads that saying to confirm that you have same sdk version installed in your system but in my case it is already installed.</p>
  
  <p>build.gradle</p>
  
  <pre><code>android {
      compileSdkVersion 19
      buildToolsVersion "19.0.1"
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  
      sourceSets {
          instrumentTest.setRoot('src/test')
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/iko0w.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/6HmrR.png" alt="enter image description here"></p>