<击> 根据我的理解,毕加索应该为你处理一切。有一些例子说明如何取消请求,但它们相距甚远。也就是说,我遇到的问题是,如果在图像仍在加载时导航带有加载图像的适配器的活动,OkHttp会抛出IOException: 击>
03-10 17:13:08.972 21440-21626/[Package] E/AndroidRuntime﹕ FATAL EXCEPTION: OkHttp DiskLruCache
Process: [Package], PID: 21440
java.lang.RuntimeException: java.io.IOException: failed to delete /data/data/[Package]/cache/picasso-cache/7e2da32a20d0abcdb2ae7347580c9658.0
at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:175)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.io.IOException: failed to delete /data/data/[Package]/cache/picasso-cache/7e2da32a20d0abcdb2ae7347580c9658.0
at com.squareup.okhttp.internal.DiskLruCache.remove(DiskLruCache.java:584)
at com.squareup.okhttp.internal.DiskLruCache.trimToSize(DiskLruCache.java:639)
at com.squareup.okhttp.internal.DiskLruCache.access$100(DiskLruCache.java:86)
at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:169)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
有什么想法吗?