Gradle looking for aar in wrong project's lib folder
<p>I have an Android application made up of multiple projects.  One of those projects is an App project that just extends the Application object.</p>

<p>Inside the build.gradle for that app project, I add other projects as dependencies.</p>

<p>I've just created a new module to house an SDK (aar) I want to use.  I've also added it to my app project's build.gradle.</p>

<pre><code>compile project(':newmodule-thesdk')
</code></pre>

<p>Inside the libs folder of newmodule-thesdk, I have added the aar file.  We'll call it thesdk.aar.</p>

<pre><code>repositories {
    flatDir {
        dirs 'libs'
    }
}

dependencies {
    compile(name:'thesdk-1.0', ext:'aar')
}
</code></pre>

<p>When I attempt to sync gradle, the sync fails because thesdk-1.0 does not exist in the libs folder of my <strong>app</strong> project.  Why is it looking for it there?  Why is it not just finding it in the newmodule-thesdk project?</p>