title: Android library with same package name
body: <p>I have a main app with a package name: com.company.package</p>
  
  <p>and I have a library with a package name: com.company.package.librarypackage</p>
  
  <p>In my main manifest file I've put:</p>
  
  <pre><code>&lt;activity
        android:configChanges="orientation"
        android:name="com.company.package.librarypackage.classA"
        android:screenOrientation="landscape" &gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>I've  also tried:</p>
  
  <pre><code>&lt;activity
        android:configChanges="orientation"
        android:name=".librarypackage.classA"
        android:screenOrientation="landscape" &gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>However my code is currently crashing with message:</p>
  
  <p>java.lang.NoClassDefFoundError: com.company.package.librarypackage.classA</p>
  
  <p>I wonder then if it's possible to have library which share a part of it's package name with the main app.</p>
  
  <p>Any suggestion?</p>
  
  <p>Thanks!</p>