title: Where to put external jsoup file for Android Studio project?
body: <p>I am trying to write an Android app using the jsoup external library. I can't get it to build! Every time I always get:</p>
  
  <blockquote>
    <p>com.android.dex.DexException: Multiple dex files define Lorg/jsoup/Connection$Base;
    UNEXPECTED TOP-LEVEL EXCEPTION:</p>
  </blockquote>
  
  <p>I have used the jsoup 1.7.1 successfully in eclipse. I tried using it with Studio for the first time. I modified the build.gradle file like so:</p>
  
  <pre><code>dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.android.support:appcompat-v7:22.0.0'
  compile 'com.google.android.gms:play-services:+'
  compile 'org.jsoup:jsoup:1.7.1'
  </code></pre>
  
  <p>}</p>
  
  <p>I also tried this with jsoup 1.8.3, and got the same results. I am not sure if I am putting the jar file in the correct place on my hard drive. I have put it in both %PROJECT%\libs\ and \AndroidStudio\lib\</p>
  
  <p>Any ideas where to put it? Or am I doing something wrong in the build.grade? Any help will be greatly appreciated.</p>