giozh
giozh

Reputation: 10068

android studio: unable to resolve HttpClientBuilder

I'm facing a strange issue On android studio. I'm using apache libraries for make some http request, and i need to change

org.apache.http.impl.client.DefaultHttpClient;

that is deprecated with

org.apache.http.impl.client.HttpClientBuilder;

but android studio don't find that package. How can i do?

Upvotes: 6

Views: 5707

Answers (2)

Shailesh
Shailesh

Reputation: 490

compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1'

4.3.5.1 is the latest version :)

Upvotes: 2

Vrashabh Irde
Vrashabh Irde

Reputation: 14377

Add to build.gradle and sync

compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5'

Upvotes: 10

Related Questions