title: No application can perform this action - Shared code with different flavors
body: <p>I am trying to create a new application ("My New App") from the source of another application that  I have ("My Previous App").</p>
  
  <p>In order to do it, I've created a new flavor, changed the app name and new icons for the new flavor, and everything goes ok.</p>
  
  <p>But I've encountered that I can't launch (at least) one activity.</p>
  
  <p>The activity is declared in a library included as a module and is defined in this way in the library manifest.xml:</p>
  
  <pre><code>&lt;activity android:name="com.my.company.core.views.download.VersionActivity"
              android:label="@string/app_name"
              android:exported="false"
              android:screenOrientation="portrait" /&gt;
  </code></pre>
  
  <p>And I am trying to launch that activity in the following way:</p>
  
  <pre><code>Intent intent = new Intent(CurrentActivity.this, VersionActivity.class);
  startActivity(intent);
  </code></pre>
  
  <p>If I have only one app, for example "My New App" installed in the terminal it works perfect. But if I have installed both apps "My New App" and "My Previous App" when I try to launch the activity as described Android says "No application can perform this action".</p>
  
  <p>Can't I share code between apps? Is there a problem with the declaration of the activity in thee manifest? By the way, I've tried with exported="true" but it didn't work anyway.</p>
  
  <p>Thanks in advance.</p>