title: Unable to build project with gradle 4.1: "unknown element * found"
body: <p>After updating to Gradle 4.1 I'm unable to build my project (all works fine with previous releases).</p>
  
  <p>Basically it doesn't recognize AndroidManifest tags anymore and gives me errors in the generated manifest in <code>/build/intermediates/manifests/full/debug</code>.</p>
  
  <p>Here's the build log:</p>
  
  <pre><code>/home/paolorotolo/dev/exp/***/build/intermediates/manifests/full/debug/AndroidManifest.xml
      Error:(30) unknown element &lt;action&gt; found
      Error:(32) unknown element &lt;category&gt; found
      Error:(33) unknown element &lt;category&gt; found
      Error:/home/paolorotolo/dev/exp/core/***/build/intermediates/manifests/full/debug/AndroidManifest.xml:30 unknown element &lt;action&gt; found
      Error:/home/paolorotolo/dev/exp/core/***/build/intermediates/manifests/full/debug/AndroidManifest.xml:33 unknown element &lt;category&gt; found
      Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
      Error:com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
      Error:Execution failed for task ':***:processDebugResources'.
      &gt; Failed to execute aapt
      Information:BUILD FAILED in 6s
  </code></pre>