Devrath
Devrath

Reputation: 42834

Images are not loading with picasso when used with okhttp

I am using the below code to load imges into the imageview in android

Picasso.with(context).load(finalImg)
                .transform(new RoundedTransformation(50, 4))
                .resize(100, 100).centerCrop()
                .into(viewHolder.profileImage);

Observation:

What is happening:

Error-log:

Could not find method com.squareup.okhttp.internal.Util.emptySink, referenced from method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.initHttpEngine

How to resolve this ?

Upvotes: 0

Views: 304

Answers (1)

Devrath
Devrath

Reputation: 42834

I found the solution to my question:

  1. I replaced above specifications .... with but replaced okhttp-urlconnection-2.0.0.jar with okhttp-urlconnection-2.2.0.jar
  2. Now i am able to load images properly

So right combo for me was

  • okhttp-2.3.0.jar
  • okhttp-urlconnection-2.2.0.jar
  • okio-1.3.0.jar
  • picasso-2.4.0.jar

Upvotes: 1

Related Questions