Reputation: 1260
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
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