{"id":7733,"date":"2015-10-19T01:16:37","date_gmt":"2015-10-19T01:16:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/19\/does-android-use-okhttp-internally-open-source-projects-square-okhttp\/"},"modified":"2015-10-19T01:16:37","modified_gmt":"2015-10-19T01:16:37","slug":"does-android-use-okhttp-internally-open-source-projects-square-okhttp","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/19\/does-android-use-okhttp-internally-open-source-projects-square-okhttp\/","title":{"rendered":"Does android use okhttp internally?-open source projects square\/okhttp"},"content":{"rendered":"<p>This is a stack trace I get when running an android app I recently inherited. We&#8217;re not using okhttp as an explicity dependency, and the com.android.okhttp in the trace makes me think the aosp is using okhttp now internally?<\/p>\n<pre><code>java.lang.Throwable: Explicit termination method 'close' not called\n                        E      at dalvik.system.CloseGuard.open(CloseGuard.java:184)\n                        E      at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:278)\n                        E      at com.android.okhttp.Connection.upgradeToTls(Connection.java:146)\n                        E      at com.android.okhttp.Connection.connect(Connection.java:107)\n                        E      at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)\n                        E      at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)\n                        E      at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)\n                        E      at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)\n                        E      at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)\n                        E      at com.android.okhttp.internal.http.HttpURLConnectionImpl.getHeaderField(HttpURLConnectionImpl.java:143)\n                        E      at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:544)\n                        E      at java.net.URLConnection.getContentLength(URLConnection.java:316)\n                        E      at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:18\n                           2)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a stack trace I get when running an android app I recently inherited. We&#8217;re not using okhttp as an explicity dependency, and the com.android.okhttp in the trace makes me think the aosp is using okhttp now internally? java.lang.Throwable: Explicit termination method &#8216;close&#8217; not called E at dalvik.system.CloseGuard.open(CloseGuard.java:184) E at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:278) E at com.android.okhttp.Connection.upgradeToTls(Connection.java:146) [&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-7733","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7733","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=7733"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7733\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}