我正在使用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)
Run Code Online (Sandbox Code Playgroud)
然后我用com.squareup.okhttp更新了pom:okhttp:1.6.0(运行mvn clean install,在IntelliJ中重新导入maven),但崩溃仍然发生.
有谁知道如何解决这个问题?
我想向Solr索引发出HTTP请求以获取请求的文档.Java中最好的(快速可靠的)HTTP客户端库是什么?(有没有类似于Ruby的typhoeus)?