title: android+gradle: different manifest meta-data per flavor
body: <p>iI would like to define a different <code>meta-data</code> manifest attribute depending on the product flavor. I tried to do this,</p>
  <pre><code>src/
    main/
      AndroidManifest.xml
    prod/
      AndroidManifest.xml
    dev/
      AndroidManifest.xml
  </code></pre>
  <p>the <code>main</code> manifest is complete, but the <code>prod</code> and <code>dev</code> versions are sparse and only contain the meta-data,</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
            package=&quot;com.example.inventory&quot;
            android:versionCode=&quot;1&quot;
            android:versionName=&quot;1.0&quot;&gt;
  
    &lt;meta-data android:name=&quot;analytics&quot;
               android:value=&quot;true&quot;/&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p>it's my understanding that the flavor manifests will merge with the main. In my build.gradle, I do,</p>
  <pre><code>android {
    productFlavors {
      prod {
        manifest.srcFile &quot;prod/AndroidManifest.xml&quot;
      }
      dev {
        manifest.srcFile &quot;dev/AndroidManifest.xml&quot;
      }
    }
    ...
  }
  </code></pre>
  <p>however, find i try to build &quot;assembleProdDebug&quot;, i get this,</p>
  <pre><code>* What went wrong:
  A problem occurred evaluating project ':Inventory'.
  &gt; No signature of method: org.gradle.api.java.archives.internal.DefaultManifest.srcFile() is applicable for argument types: (java.lang.String) values: [prod/AndroidManifest.xml]
  </code></pre>