android.content.pm.PackageManager$NameNotFoundException: when using 2 product flavors?
<p>I have 2 product flavor. Let's say the example like this:</p>

<pre><code>productFlavors {
    free {
      applicationId 'com.free.android'

    }
    premium {
      applicationId 'com.premium.android'

    }
</code></pre>

<p>My problem is when i use </p>

<pre><code>Intent resultIntent = new Intent(this, ExpiryListActivity.class);
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
stackBuilder.addParentStack(ExpiryListActivity.class);
stackBuilder.addNextIntent(resultIntent);
</code></pre>

<p>The problem happened when <code>stackBuilder.addParentStack(ExpiryListActivity.class)</code>
The first app which used the productFlavor free doesn't cause <code>android.content.pm.PackageManager$NameNotFoundException</code> error.
But the second app which used the productFlavor premium it causes <code>android.content.pm.PackageManager$NameNotFoundException</code>. 
Then i read the docs that <code>stackBuilder.addParentStack(&lt;Class&gt;)</code> Add the activity parent chain as specified by manifest . How to solve this problem?</p>