title: Android Studio Gradle Library setup
body: <p>I've been struggling with getting external libraries to work properly. When you import a library, it gets copied into the project's directory structure. I'd like to avoid this as I have libraries I use in many projects, and these libraries get updated on a fairly frequent basis.</p>
  
  <p>So these are the libraries I'm trying to get setup right now:</p>
  
  <p>aal - This is a general use library that I use across several applications. This android library has no external dependencies.</p>
  
  <p>aal_amazon - This is a library for accessing Amazon specific APIs. This library depends on aal, and has the Amazon game circle SDK in it.</p>
  
  <p>aal_google - This library is for google APIs. This library depends on google play services, and also aal.</p>
  
  <p>Ideally, I'd like to be able to set a project's dependency to either aal_amazon, or aal_google, and by extension, the project should have access to aal.</p>
  
  <p>I know you can use project(':aal').projectDir = new File('path/to/file') to set the library's folder location, however I seem to be having the issue because the amazon, and google libs have their own dependencies. </p>
  
  <p>Is there a way to set things up so in a project, I just put this in the settings.gradle:</p>
  
  <pre><code>include ':app'
  include ':aal_amazon'
  project(':aal_amazon').projectDir= new File('/path/to/aal_amazon')
  </code></pre>
  
  <p>Where the above would give the project access to aal_amazon, AND aal?</p>