[안드로이드] targetSDK 26 HttpClient 오류


Android SDK 23 이전에서 잘 동작하던 앱이 26으로 올리니 아래와 같은 오류가 발생합니다.

23 버전부터 제거가 되었다고 하네요~

org.apache.http.legacy.jar 파일을 다운로드 해서 libs 에 추가해 주면 됩니다.

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:658)

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:632)

02-22 11:34:12.168: E/AndroidRuntime(8261): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:621)

https://android.googlesource.com/platform/prebuilts/sdk/+/android-support-test/org.apache.http.legacy

https://android.googlesource.com/platform/prebuilts/sdk/+archive/android-support-test/org.apache.http.legacy.tar.gz



블로그 이미지

iVPS 영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

댓글을 달아 주세요