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'
本文介绍在Android开发中,使用Picasso和OKHttp时出现的不兼容问题及解决方案。当这两个库版本不匹配时,会导致运行时异常。文章提供了具体的依赖版本配置来解决此问题。
2142

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



