title: applicationId manifest placeholder for multiple build flavors not working
body: <p>I am modifying current android project so it can be installed on same device for multiple flavors and build configs.</p>
  
  <p><strong>build.gradle:</strong></p>
  
  <pre><code>{
      // ...
      defaultConfig {
          applicationId "com.myapp"
          manifestPlaceholders = [
              manifestApplicationId: "${applicationId}",
              onesignal_app_id: "xxxx",
              onesignal_google_project_number: "xxxx"
          ]
      // ...
      }
  
      productFlavors {
          production {
              applicationId "com.myapp"
              // ...
          }
  
          dev {
              applicationId "com.myapp.dev"
              // ...
          }
  
          // ...
      }
  
      buildTypes {
          release {
              // ...
          }
  
          debug {
              applicationIdSuffix ".debug"
              // ...
          }
      }
  
      // ...
  }
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong>:</p>
  
  <pre><code>&lt;manifest ... &gt;
      &lt;uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" /&gt;
      &lt;permission
      android:name="${applicationId}.permission.C2D_MESSAGE"
      android:protectionLevel="signature" /&gt;      
      &lt;!-- ... --&gt;
  
      &lt;receiver
          android:name="com.onesignal.GcmBroadcastReceiver"
          android:permission="com.google.android.c2dm.permission.SEND" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;category android:name="${applicationId}" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;!-- ... --&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>When I compile both debug and release version of the same flavor, I got error message:</p>
  
  <p>...</p>
  
  <p>INSTALL_FAILED_DUPLICATE_PERMISSION</p>
  
  <p>perm=com.myapp.permission.C2D_MESSAGE</p>
  
  <p>pkg=com.myapp.dev</p>
  
  <p>...</p>
  
  <p>manifestApplicationId placeholder came from AndroidManifest.xml on OneSignal library as instructed on <a href="https://documentation.onesignal.com/docs/android-sdk-setup" rel="noreferrer">https://documentation.onesignal.com/docs/android-sdk-setup</a></p>
  
  <p>Anybody have a clue how to fix this problem? Thank you.</p>