title: How to use the gson library from google
body: <p>I am trying to use the <a href="https://github.com/google/gson" rel="nofollow">google gson</a> library in android studio, but I can't import it. I've added the .jar file to the libs folder, and I added</p>
  
  <pre><code>compile fileTree(dir: 'libs', include: ['*.jar'])
  </code></pre>
  
  <p>to my app build.gradle dependencies. There's no option to add library when I right click the .jar file.</p>
  
  <p>Then, is there a package statement I need to write? Or an import?</p>
  
  <p>I'm very new to java, and help is very much appreciated. Thanks in advance!</p>