Praneeth
Praneeth

Reputation: 1260

HttpClient is not imprting in Android studio

I gone through all the post and Add the line,

 useLibrary 'org.apache.http.legacy' 

in app build.gradle and changed the

 dependencies {
     classpath 'com.android.tools.build:gradle:1.3.0'
 }

But still it is not importing! can any one suggest me what i'm missing here?

Upvotes: 1

Views: 147

Answers (1)

Sasi Kumar
Sasi Kumar

Reputation: 13268

Download jar file HttpClient.jar.Then add into lib folder on your project.Then fix the path on settings

 File -> Project Structure -> Dependencies -> Add -> File Dependency 

Android Studio opens a dialog box where you can drag&drop the jar library. Then click the OK button.

Upvotes: 4

Related Questions