Nested aar dependencies not working
<p>To simplify things I'm going to call the libraries I'm using library_a.aar and library_b.aar.</p>

<p>Here is the scenario that I'm facing.
library_a is build and pushed to maven_repository and no problems here.
library_b depends on library_a and added to library_b as follows:</p>

<pre><code>repositories {
    maven {
        credentials {
            username USERNAME
            password PASSWORD
        }
        url "https://api.bitbucket.org/1.0/repositories/COMPANY/maven_repository/raw/releases"
    }
}

dependencies {
    ...
    compile 'package:library_a:1.0'
    ...
}
</code></pre>

<p>library_b is built with no errors and uploaded to the maven_repository.</p>

<p>Now my application depends on library_b which I need to add by providing (as above) the repository along with the credentials.</p>

<p>The first issue that I'm facing is that in order to compile library_b in my project it needs to be compiled in the following way:</p>

<pre><code>dependencies {
    ...
    compile 'package:library_b:1.0@aar'
    ...
}
</code></pre>

<p>I have to add the @aar otherwise gradle won't recognize it, but I didn't have to do that with library_a.</p>

<p>The second issue is that when I build the app I get warnings that it can't find references to classes available in library_a. What am I missing over here? I did try to add transitive=true to library_a </p>

<pre><code>dependencies {
        ...
        compile ('package:library_a:1.0') {
            transitive = true;
        }
        ...
}
</code></pre>

<p>but absolutely nothing works. I did check the pom file and it includes the proper dependencies.
Could it be that what I'm doing is not supported by gradle and I have to compile both library_a and library_b in my app? </p>