Picasso: Is picasso check for okHttp broken?

Created on 9 Jun 2014  Â·  8Comments  Â·  Source: square/picasso

In version 2.3.2 it search for com.squareup.okhttp.OkUrlFactory (https://github.com/square/okhttp/blob/master/okhttp-urlconnection/src/main/java/com/squareup/okhttp/OkUrlFactory.java)
but I don't see that class available in okHttp 1.6.

I see that class is part of okhttp-urlconnection, should we start adding okhttp-urlconnection as an additional dependency?

Most helpful comment

use this combination it work for me

compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.squareup.picasso:picasso:2.4.0'

All 8 comments

Yes. You need both until OkHttp 2.0 final is out.

Cool, thanks.

It seems that we still need both in OkHttp 2.0?

Yes.
On Jun 24, 2014 4:13 AM, "nielsz" [email protected] wrote:

It seems that we still need both in OkHttp?

—
Reply to this email directly or view it on GitHub
https://github.com/square/picasso/issues/541#issuecomment-46958666.

Getting the error with picasso-2.4.0.jar and okhttp-2.1.0.jar . So seems to still be a problem even after 2.0.

Did you include okhttp-urlconnection jar?
On Nov 17, 2014 2:02 PM, "Lance Nanek" [email protected] wrote:

Getting the error with picasso-2.4.0.jar and okhttp-2.1.0.jar . So seems
to still be a problem even after 2.0.

—
Reply to this email directly or view it on GitHub
https://github.com/square/picasso/issues/541#issuecomment-63384489.

use this combination it work for me

compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.squareup.picasso:picasso:2.4.0'

use this it also work for me

compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.squareup.okhttp:okhttp:2.7.2'

thanks @mansukhgagal

Was this page helpful?
0 / 5 - 0 ratings