title: Create an AAR that depends on multiple AARs
body: <p>I am working to build an SDK that can be used in other application.</p>
  
  <p>My project structure is as follows:</p>
  
  <pre><code>ProjectFolder
    |
    +--AndroidLibs
    |      |
    |      +--UI (android library - AAR)
    |      |
    |      +--Protocol (android library - AAR)
    |      |
    |      +--infra (android library - AAR)
    |
    +--SDK(depends on UI, Protocol and Infra) 
    |
    +--APP(depends on SDK)
  </code></pre>
  
  <p>As you can see, we have 3 different libraries that we work on, each one is a module in our system (infra, ui and protocol). Each one of them is creating an AAR.</p>
  
  <p>Our SDK is a wrapper with some API calls to the lower layers.</p>
  
  <p>We want to create one AAR that depends on all other AARs, but from some reason when we tried to run it, it says that he can't find the source code for some classes.</p>
  
  <p>I found some questions related to this issue, but they didn't worked. 
  Also tried to work with <code>transitive</code> dependencies, but the bottom line is the same - can't find the source code.</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/20700581/android-studio-how-to-package-single-aar-from-multiple-library-projects">android-studio-how-to-package-single-aar-from-multiple-library-projects</a>: One answer that says there no solution for that (Google employee).</li>
  <li><a href="https://stackoverflow.com/questions/34445399/create-an-aar-with-multiple-aars-jars">create-an-aar-with-multiple-aars-jars</a>: use the <code>transitive</code> dependencies.</li>
  <li><a href="https://github.com/simpligility/android-maven-plugin/issues/518" rel="nofollow noreferrer">Create Mojo for creating AAR with all "aar" dependencies</a></li>
  </ol>
  
  <p>Is there anything else we can do?</p>