http://blog.youkuaiyun.com/github_36875356/article/details/54178751
在使用OKHttp的时候,加入Picasso,会出现错误:
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)
解决方法:
在写依赖库的时候要写三个:
compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.squareup.picasso:picasso:2.4.0'
本文介绍在使用Picasso时遇到与OKHttp版本不兼容的问题,并提供了解决方案,包括所需依赖库的具体版本。
2133

被折叠的 条评论
为什么被折叠?



