我正在使用 Picasso 2.3.2 和 okhttp 1.5.4
最初我得到这个 RTE:
java.lang.RuntimeException: Picasso detected an unsupported OkHttp on the classpath.
To use OkHttp with this version of Picasso, you'll need:
1. com.squareup.okhttp:okhttp:1.6.0 (or newer)
2. com.squareup.okhttp:okhttp-urlconnection:1.6.0 (or newer)
Note that OkHttp 2.0.0+ is supported!
at com.squareup.picasso.Utils.createDefaultDownloader(Utils.java:246)
at com.squareup.picasso.Picasso$Builder.build(Picasso.java:596)
at com.squareup.picasso.Picasso.with(Picasso.java:473)
然后我用 com.squareup.okhttp:okhttp:1.6.0 更新了 pom(运行 mvn clean install,在 IntelliJ 中重新导入了 maven),但崩溃仍然发生。
有人知道如何解决这个问题吗?