{"id":7730,"date":"2015-10-19T01:12:06","date_gmt":"2015-10-19T01:12:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/19\/retrofit-detected-an-unsupported-okhttp-on-the-classpath-error-in-okhttp-2-0-open-source-projects-square-okhttp\/"},"modified":"2015-10-19T01:12:06","modified_gmt":"2015-10-19T01:12:06","slug":"retrofit-detected-an-unsupported-okhttp-on-the-classpath-error-in-okhttp-2-0-open-source-projects-square-okhttp","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/19\/retrofit-detected-an-unsupported-okhttp-on-the-classpath-error-in-okhttp-2-0-open-source-projects-square-okhttp\/","title":{"rendered":"Retrofit detected an unsupported OkHttp on the classpath error in OKHttp 2.0-open source projects square\/okhttp"},"content":{"rendered":"<p>I am using <code>Retrofit-1.6.0<\/code> + <code>okhttp-2.0.0-RC1<\/code> in my project . when i run the project i get the error.<\/p>\n<pre><code>java.lang.RuntimeException: Retrofit detected an unsupported OkHttp on the classpath.\nTo use OkHttp with this version of Retrofit, you'll need:\n1. com.squareup.okhttp:okhttp:1.6.0 (or newer)\n2. com.squareup.okhttp:okhttp-urlconnection:1.6.0 (or newer)\nNote that OkHttp 2.0.0+ is supported!\n<\/code><\/pre>\n<p>Anybody knows how to fix this?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using Retrofit-1.6.0 + okhttp-2.0.0-RC1 in my project . when i run the project i get the error. java.lang.RuntimeException: Retrofit detected an unsupported OkHttp on the classpath. To use OkHttp with this version of Retrofit, you&#8217;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! Anybody knows how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7730","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7730"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7730\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}