title: Android: product flavor, applicationId (package name) and manifest
body: <p>So I have base Application class, DApp.</p>
  <p>My flavor application classes just extend the DApp.</p>
  <p>for example</p>
  <blockquote>
  <p>package com.d.android;</p>
  <p>public class App extends DApp {}</p>
  </blockquote>
  <p>In my gradle script the following is setup for the flavor:</p>
  <pre><code>productFlavors {
      d {
          applicationId = &quot;com.d.android&quot;
      }
  }
  </code></pre>
  <p>In my manifest I've declared my app like that:</p>
  <pre><code>name = &quot;.App&quot;
  </code></pre>
  <p>For some reason gradle does not honor the different package name given by applicationId.</p>
  <p>For now I just resolved it by defining AndroidManifest files for each flavor and declaring the full class name for the app file, but that seems wrong. That means that my package name is wrong.
  Any ideas?</p>