title: Best way to incorporate Volley (or other library) into Android Studio project
body: <p>I've seen different advice on the best way to do this <a href="https://stackoverflow.com/questions/17218295/android-gradle-build-system-create-jar-not-library">This question</a> covers creating a jar. Elsewhere, I've seen advice to simply copy the volley source into your own project. <a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-projects" rel="noreferrer">This section</a> on libraries at android.com would seem the most authoritative. However, after compiling volley, I don't have an aal library, whereas that section says I should have.</p>
  
  <p>So my question is this: I have an existing Android Studio project with a standard layout, and a git repository; what should I do to add volley? Where should I download it to? How should I add it to Android Studio? Which Gradle files, if any, do I need to modify.</p>
  
  <p>Hopefully, for those of you have done this a few times, this should be bread-and-butter stuff, but I haven't been able to find a straightforward description.</p>
  
  <p>--</p>
  
  <p><strong>Updating</strong>, per Scott Barta's suggestion.</p>
  
  <p>The gradle.build file in the volley repository has this line.</p>
  
  <pre><code>apply plugin: 'android-library'
  </code></pre>
  
  <p>According to <a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-projects" rel="noreferrer">the documentation</a>: "<em>Library projects do not generate an APK, they generate a .aar package (which stands for Android archive).</em>" However, when I build the volley project, no .aar is created.</p>
  
  <p>My feeling is that as Volley is a library project, created by the Android team, it is most probably intended to be generated and used as .aar package. Any advice on whether it would be preferable to generate a .aar, and how to do that, would be appreciated.</p>