title: Android Studio gradle build successfully despite api level error
body: <p>I am working on an android project that Api level is 10,  its is declared in build.gradle and AndroidManifest.xml files </p>
  
  <pre><code>defaultConfig {
      minSdkVersion 10
      targetSdkVersion 15
  }
  
  &lt;uses-sdk
      android:minSdkVersion="10"
      android:targetSdkVersion="15" /&gt;
  </code></pre>
  
  <p>When I use ActionBar class Android Studio Editor underlined this line and gave warning as I expected "Call requires API level 11(current min is 10):android.app.ActionBar..."</p>
  
  <p>but when I compile project , it is compiled successfully. It can be cause errors , how can it be worked on API lvl 10 devices.I want an error about this, but it compiled.How can I get a build error about this. ty.</p>