The Apache HttpClient 4.3 port for Android is designed to correct the situation by providing official releases compatible with Google Android.
Given that with the Android API 23 Google fork HttpClient was the removal of this project was discontinued.
Those users who want to continue to use Apache HttpClient on Android are encouraged to consider
Apache HttpClient 4.3 port for Android when configuring Android API 22 and older
dependencies { compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1' }
Apache HttpClient for Android packages supported by Marek Sebera when setting up Android API 23 and later
dependencies { compile group: 'cz.msebera.android' , name: 'httpclient', version: '4.4.1.1' }
taken from Apache Official Website : Apache HttpClient for Android
NOTE. You do not need to use the useLibrary 'org.apache.http.legacy' , which was introduced for projects that were not ported from the Android HttpClient classes. For further explanation .
source share