title: Gradle fails on manifest merging for "targetApi"
body: <p>My project contains activity declarations in the manifest that use the <code>tools:targetApi</code> attribute to ignore some warnings. Specifically:</p>
  
  <pre><code>    &lt;activity
          android:name=".activities.ProtocolActivity"
          android:label="@string/title_activity_protocols"
          android:parentActivityName=".activities.InformationActivity"
          tools:targetApi="jelly_bean"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".activities.InformationActivity" /&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>Out of the blue, however, for instance after switching branches, I get the following compilation error:</p>
  
  <blockquote>
    <p>Error:/home/paul/git/ally-v2-app/app/src/main/AndroidManifest.xml:67:9-80:20:
    Error: Invalid instruction 'targetApi', valid instructions are :
    REMOVE,REPLACE,STRICT<br>
    ...<br>
    Error:java.lang.IllegalArgumentException: No
    enum constant com.android.manifmerger.AttributeOperationType.TARGETAPI</p>
  </blockquote>
  
  <p>I'm using the following:</p>
  
  <ul>
  <li>Gradle 2.10</li>
  <li>Gradle plugin 2.0.0-beta6</li>
  <li>Android Studio 2.0 beta 6</li>
  <li>Both on an Ubuntu 15.10 machine and a Windows 10 machine</li>
  </ul>
  
  <p>It seems I can get things working again by clearing the cache and restarting Android Studio, or removing the attributes, building, then adding them again.</p>