user3547706
user3547706

Reputation:

httpclient class not found in android application

Hello friends i make application which is based on web service so i added jar as below

apache-mime4j-0.6.jar
httpmime-4.0.1.jar
picasso.jar and so on..

When i configure my project with jar only apache-mime4j-0.6.jar is not getting to my project rest of all jar are access see my below image

enter image description here

Any idea how can i solve this? your all suggestions are appreciable.

Upvotes: 0

Views: 974

Answers (1)

Brian Hoang
Brian Hoang

Reputation: 1111

The IDE in your screenshot shows various class names in red that it can't find:

  • HttpClient
  • DefaultHttpClient
  • HttpPost

These classes are provided by the Apache HttpComponents project, not by apache-mime4j library.

Download the latest binary release of HttpComponents and extract the *.jar files within it to your libs directory.

Upvotes: 1

Related Questions