title: Android Gradle Dependency
body: <p>I am using local aar files for one of our projects and have below Query.
  I have 2 libraries and 1 application.</p>
  
  <p>2 libraries are:
  1. TestLib2
  2. TestLib1</p>
  
  <p>1 Application is:
  1. Test</p>
  
  <p>I use a aar file created for TestLib2 and refer it using flatDir in TestLib1. I can access the functions present in TestLib2 without any problems.</p>
  
  <p>Now I use a aar file created for TestLib1 and refer it using flatDir in Test. I can access only the functions present in TestLib1. For accessing TestLib2 i have to add it to Test application as one more Library.</p>
  
  <p>So the dependency is like below:</p>
  
  <pre><code>Test
  |_ TestLib1
     |_ TestLib2
  </code></pre>
  
  <p>Is the above possible in case of aar files?</p>
  
  <p>Also in settings.gradle file for TestLib1 i mention to include</p>
  
  <pre><code>include ':app', ':testlib2-debug'
  </code></pre>
  
  <p>Where app refers to the TestLib1</p>
  
  <p>The build.gradle file doesnt really have any flavors as such and i dont even have any restriction of using them as jar's since its containing only the java piece of code.</p>
  
  <p>Any help on the same is much appreciated.</p>
  
  <p>BR,
  Jayshil</p>
  
  <p><strong>Update 1:</strong>
  I tried below as well in build.gradle of TestLib1 and Test.
  Still no luck. </p>
  
  <pre><code>dependencies {
      compile (name:'testlib2-debug', ext:'aar') {
          transitive = true;
      }
  }
  </code></pre>
  
  <p>And for Test App</p>
  
  <pre><code>compile (name:'testlib1-debug', ext:'aar')  {
          transitive = true;
  }
  </code></pre>