title: Mysteries of importing libraries (eg, Picasso) to Android Studio
body: <p>Android Studio, it's 0.5.9 (on a Mac, fwiw),</p>
  
  <p>(1) What ("the hell") is the difference between <strong>the inner and outer</strong> build.gradle file? I'm confused why I can't just put everything ion the outer one?</p>
  
  <p><img src="https://i.stack.imgur.com/9pHuo.png" alt="enter image description here"></p>
  
  <p>(2) When I imported universal-image-loader-1.9.2.jar I followed this procedure:</p>
  
  <p>1, drag that file to "libs".  2, right click add as library.  3, added "compile files" like this <a href="https://stackoverflow.com/a/17521288/294884">https://stackoverflow.com/a/17521288/294884</a> in build.gradle</p>
  
  <p>Works awesomely. (Android rocks.) BUT ......................</p>
  
  <p>when I tried that with picasso-2.3.1.jar, i just get a weird warning <strong>"Refactoring cannot be performed - read only"</strong>.  It would not let me move it into that folder. What's that about?</p>
  
  <p>(3) The actual Picasso page, for example, suggests this:</p>
  
  <p><img src="https://i.stack.imgur.com/88VW3.png" alt="enter image description here"></p>
  
  <p>But my gradle files <strong>look nothing like that</strong>, and I can't make that work.  My gradle fils have only { { } } syntax.  How/can I make that suggestion from the Picasso page work in my gradle files?</p>
  
  <p>(4) What's the <strong>"compile" .. "classpath" dichotomy</strong>?  Many tutorials say to add this ...</p>
  
  <pre><code>compile 'com.squareup.picasso:picasso:2.1.1'
  </code></pre>
  
  <p>BUT that will not work for me at all.  I got it to work only buy randomly trying things, this worked:</p>
  
  <pre><code>classpath 'com.squareup.picasso:picasso:2.3.1'
  </code></pre>
  
  <p>I can't seem to get "compile" to work.</p>
  
  <p>(5) At other times in Android Studio I've used the (also fabulous -- Android rocks) File -> Project Structure.  And then just thrash around clicking on things until it makes magic happen.  My question there is, <strong>in fact is that the SAME AS modding [see footnote!] the gradle files?</strong>, ie is that simply a <strong>wizard</strong> that edits the gradle files for you?  Or is it more than that?</p>
  
  <p>Five hard questions -- THANKS</p>
  
  <p><em>Footnote - Working with Gradle files I feel like my daughter modding Minecraft - but I'm not as good at it.</em></p>