title: Gradle Flavour wise change packageName and applicationId
body: <p>I have a core product (for example <strong>School core</strong>) Now I need to launch it for 2 school (example <strong>School A</strong> and <strong>School B</strong>). Only different is app icon splash screen. I try to manage this through flavour. As we know to upload to google play store we need different package name, so I got stuck there.</p>
  
  <p>My flavour looks like this - </p>
  
  <pre><code>productFlavors {
      main {
          applicationId "net.school.main"
          versionCode 7
          versionName "2.12"
      }
      schoolA {
          versionCode 2
          versionName '1.01'
          applicationId 'net.school.schoolA'
      }
      schoolB {
          versionCode 1
          versionName '1.0'
          applicationId 'net.school.schoolB'
      }
  }
  </code></pre>
  
  <p>When I run the flavour <strong>schoolA</strong> it's saying package not found. I am looking for best approach so that in future any new school can be added with minimal changes. </p>