title: Adding local .aar files to Gradle build using "flatDirs" is not working
body: <p>I'm aware of this question: <a href="https://stackoverflow.com/questions/21882804/adding-local-aar-files-to-my-gradle-build">Adding local .aar files to my gradle build</a> but the solution does not work for me.</p>
  
  <p>I tried adding this statement to the top level of my <code>build.gradle</code> file:</p>
  
  <pre><code>repositories {
      mavenCentral()
      flatDir {
          dirs 'libs'
      }
  }
  </code></pre>
  
  <p>I've also put the <code>slidingmenu.aar</code> file into <code>/libs</code> and referenced it in the <code>dependencies</code> section: <code>compile 'com.slidingmenu.lib:slidingmenu:1.0.0@aar'</code> but it did not work at all.</p>
  
  <p>I tried <code>compile files('libs/slidingmenu.aar')</code> as well but with no luck.</p>
  
  <p>What am I missing? Any ideas?</p>
  
  <p>P.S. Android Studio 0.8.2</p>