2014-09-23 43 views
18

這是我運行最近繼承的Android應用程序時得到的堆棧跟蹤。我們不使用OkHttp作爲一個明確的相關性,在跟蹤的com.android.okhttp讓我覺得AOSP使用OkHttp現在在內部?Android是否在內部使用OkHttp?

java.lang.Throwable: Explicit termination method 'close' 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) 
E  at com.android.okhttp.Connection.connect(Connection.java:107) 
E  at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294) 
E  at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255) 
E  at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206) 
E  at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345) 
E  at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296) 
E  at com.android.okhttp.internal.http.HttpURLConnectionImpl.getHeaderField(HttpURLConnectionImpl.java:143) 
E  at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:544) 
E  at java.net.URLConnection.getContentLength(URLConnection.java:316) 
E  at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:182) 
+0

在Android KitKat中,是的。 來源:http://stackoverflow.com/questions/23168450/how-to-debug-com-android-okhttp – nadavfima 2014-09-23 16:24:43

+0

這讓我在結試圖找出依賴的來源。 – frostymarvelous 2015-08-11 23:00:37

回答