title: Android Manifest: Can't force minSDK anymore. "should not be declared in the android manifest file"
body: <p>Got a little build issue.</p>
  
  <p>Got a lib that requires minSDK:23 while I still want to support 21.</p>
  
  <p>The solution of </p>
  
  <pre><code>    &lt;uses-sdk
      android:minSdkVersion="21"
      tools:overrideLibrary="a.rogue.library" /&gt;
  </code></pre>
  
  <p>Doesn't <em>sync</em> anymore and shows</p>
  
  <blockquote>
    <p>The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
    <strong>Remove minSdkVersion and sync project</strong>
    Affected Modules: approot</p>
  </blockquote>
  
  <p>Strange observation: <strong>Sync fails but Build succeeds</strong>. Moreover, sync <strong>after</strong> build succeeds, too.</p>
  
  <p>It's an unhealthy situation, though:</p>
  
  <ul>
  <li>If I add the <code>overrideLibrary</code> line to the manifest - it won't sync.</li>
  <li>If I remove the <code>overrideLibrary</code> line from the manifest - it won't build, of course, because there is a minSDK conflict.</li>
  </ul>
  
  <p>Any way to settle this out? Can overrideLibrary reside somehow in the <code>build.gradle</code>?</p>
  
  <p>Thanks</p>