title: OkHTTP and Picasso don't run together
body: <p>I use Picasso library in my project to load images ande cache them. It works good without any problem. However, when I try to use OkHttp library to perform data communication with my server (JSON communication), Picasso throws exceptions.</p>
  
  <p>I use the following jars : okhttp-2.0.0-RC2, okio-1.0.0, picasso-2.2.0. When I run my project after I add these jars, It crashes with the following :</p>
  
  <pre><code>06-12 11:13:15.824: E/dalvikvm(12105): Could not find class 'com.squareup.okhttp.HttpResponseCache', referenced from method com.squareup.picasso.OkHttpDownloader.&lt;init&gt;
  </code></pre>
  
  <p>I added okhttp just to use the following method : </p>
  
  <pre><code>public static String executeHttpGet(String urlStr) {
      Response response = null;
      String result = "";
      OkHttpClient client = new OkHttpClient();
  
      try {
          Request request = new Request.Builder().url(urlStr).build();
  
          response = client.newCall(request).execute();
          result = response.body().string();
      } catch (Exception ex) {
  
      }
      return result;
  }
  </code></pre>
  
  <p>The above code works without any problem. However the codes which use Picasso library and used to work perfectly, start to throw the following excecption :</p>
  
  <pre><code>06-12 11:19:49.307: E/AndroidRuntime(13036): FATAL EXCEPTION: main
  06-12 11:19:49.307: E/AndroidRuntime(13036): java.lang.NoClassDefFoundError: com.squareup.okhttp.HttpResponseCache
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.OkHttpDownloader.&lt;init&gt;(OkHttpDownloader.java:74)
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.OkHttpDownloader.&lt;init&gt;(OkHttpDownloader.java:51)
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.OkHttpDownloader.&lt;init&gt;(OkHttpDownloader.java:41)
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.Utils$OkHttpLoaderCreator.create(Utils.java:319)
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.Utils.createDefaultDownloader(Utils.java:171)
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.Picasso$Builder.build(Picasso.java:490)
  06-12 11:19:49.307: E/AndroidRuntime(13036):    at com.squareup.picasso.Picasso.with(Picasso.java:390)
  </code></pre>
  
  <p>My Class Path :</p>
  
  <p><img src="https://i.stack.imgur.com/hzc2d.png" alt="enter image description here"></p>
  
  <p>If I remove okhttp-2.0.0-RC2, okio-1.0.0, Picasso lines work.</p>
  
  <p>Why is that happening ? How can I use two libraries together ? </p>