title: Create Android library that uses AAR file as dependency
body: <p>I want to build android library as AAR file that includes dependencies in output AAR file. It uses another AAR file as dependency from libs folder.</p>
  <p><a href="https://i.stack.imgur.com/c6LGj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c6LGj.png" alt="enter image description here" /></a></p>
  <p>Building library shows this error:</p>
  <p><code>Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR.</code></p>
  <p><strong>I tried extracting AAR file as module</strong>
  <a href="https://i.stack.imgur.com/5Uk2q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Uk2q.png" alt="enter image description here" /></a></p>
  <p>And then imported it as a project
  <a href="https://i.stack.imgur.com/dy6fB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dy6fB.png" alt="enter image description here" /></a></p>
  <p>Build command worked, but it does not include external library in classes.jar
  <a href="https://i.stack.imgur.com/bq8dg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bq8dg.png" alt="enter image description here" /></a></p>
  <p>My proguard-rules.pro file is</p>
  <pre><code>-dontwarn javax.annotation.Nullable
  -dontwarn com.facetec.sdk.**
  -keep class com.facetec.sdk.** { *; }
  </code></pre>
  <p>I've also tried to use <a href="https://github.com/kezong/fat-aar-android" rel="nofollow noreferrer">https://github.com/kezong/fat-aar-android</a> library and imported facetec-sdk module as embed project, but build command showed lint error</p>
  <p><a href="https://i.stack.imgur.com/XEsXa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XEsXa.png" alt="enter image description here" /></a></p>