title: Android Studio dynamically loaded library
body: <p>I have an Android application that dynamically loads a library using <code>DexClassLoader</code>. Until now the application and the library were developed in separate projects. I would like to unite the projects into a single project (two modules in a project?) but I am not sure how to achieve it with Android Studio/Gradle. Note, that I don't want to add a static dependency between the app and the library. The result I want to achieve is:</p>
  
  <ol>
  <li>Both the application and the library are in the same project.</li>
  <li>The building of the app and the library may be in two separate steps (but one step could be nice :D ).</li>
  <li>The compiled library must be eventually an asset of the application and be bundled in the resulting APK; i.e., not statically compiled into the application but be a stand-alone file in the APK.</li>
  </ol>
  
  <p>Any ideas?</p>