title: Issue when exported a jar for an Android Library project in Android Studio
body: <p>Here is the project structure.</p>
  
  <p>+--- Project ':src'<Br/>
  |    +--- Project ':src:sample'<Br/>
  |     \--- Project ':src:mylib'</p>
  
  <p><strong>mylib</strong> is an Android Library providing with APIs which <strong>sample</strong> depends on. In the <strong>mylib</strong> project, there is an external jar libraries in <strong>/src/mylib/libs/</strong> folder that <strong>mylib</strong> depends on. </p>
  
  <p>When the <strong>sample</strong> depends on the project, which means set the <strong>sample</strong> dependencies as:</p>
  
  <blockquote>
    <p>compile project(':src:mylib')</p>
  </blockquote>
  
  <p>Everything worked fine.</p>
  
  <p>However, i would like to generate a .jar file from <strong>mylib</strong> by renamimg and copying the /mylib/build/intermediates/bundles/classes.jar to /sample/libs/mylib.jar ,and set the <strong>sample</strong> dependencies as:</p>
  
  <blockquote>
    <p>compile files('libs/mylib.jar')</p>
  </blockquote>
  
  <p>It succeed to compile <strong>sample</strong> project and to install the apk on my phone. But the app crashed with a NoClassDefFoundError exception. The classes that app didn't find are the classes in <strong>mylib</strong> AND in the external lib that <strong>mylib</strong> refers.</p>
  
  <p>Is it not the right way to generate the jar file that i used?
  If not, then how should i generate a jar file in Android Studio?</p>
  
  <p>Thanks guys.</p>