【发布时间】:2015-05-23 14:08:18
【问题描述】:
我正在使用下面的代码将图像加载到 android 中的 imageview 中
Picasso.with(context).load(finalImg)
.transform(new RoundedTransformation(50, 4))
.resize(100, 100).centerCrop()
.into(viewHolder.profileImage);
观察:
- 当我将 Picasso 与 http 一起使用时,此代码工作得非常好 图书馆
- 但是我没有用
okhttp-2.3.0.jar替换网络库 - 我也用过
okio-1.3.0.jar,okhttp-urlconnection-2.0.0.jar
发生了什么:
- 我的图片没有加载
错误日志:
Could not find method com.squareup.okhttp.internal.Util.emptySink, referenced from method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.initHttpEngine
如何解决?
【问题讨论】: