title: Android: Adding external library to project not working
body: <p>I am trying to add Jsoup library to my project, but I am getting an error in the program saying "Cannot resolve symbol 'Jsoup'". Below is what I have done, but not working.</p>
  
  <p>1)From the Jsoup website, I downloaded the core library jsoup-1.10.2.jar <br>
  2)Dragged and dropped the .jar file under libs folder in my project <br>
  3)Under build.gradle in dependencies, I added the following line <br></p>
  
  <pre><code>compile files('libs/jsoup-1.10.2.jar')
  </code></pre>
  
  <p>4)In MainActivity.java file, I tried to add the following line</p>
  
  <pre><code>String url = "http://example.com";
  try {
      Document document = Jsoup.connect(url).get();
      //more code here
  }
  </code></pre>
  
  <p>Then, Jsoup turns red and says "Cannot resolve symbol 'Jsoup'".
  Can anyone tell me what I am doing wrong? I visited many websites and watched a few tutorial videos and I followed them. But I am getting this error.</p>