The import org.apache.http.HttpResponce cannot resolved error solution

Download and install org.apache.http jar file to remove error.

The import org.apache.http.HttpResponce cannot resolved error solution

This error shows on most of android apps while they are on developing stage because of apache package is not installed on them. Org.apache.http class contain web http functions, MySQL functions to set and connect MySQL connectivity without these particular JARs import these function will not works properly. So here is the complete step by step tutorial for The import org.apache.http.HttpResponce cannot resolved error solution.

Importing org.apache.http package can solve all these below errors.

  • import org.apache.http.HttpEntity;
  • import org.apache.http.HttpResponse;
  • import org.apache.http.NameValuePair;
  • import org.apache.http.client.ClientProtocolException;
  • import org.apache.http.client.HttpClient;
  • import org.apache.http.client.entity.UrlEncodedFormEntity;
  • import org.apache.http.client.methods.HttpGet;
  • import org.apache.http.client.methods.HttpPost;
  • import org.apache.http.client.methods.HttpUriRequest;
  • import org.apache.http.impl.client.DefaultHttpClient;
  • import org.apache.http.message.BasicNameValuePair;
  • import org.apache.http.params.BasicHttpParams;
  • import org.apache.http.protocol.HTTP;

The import org.apache.http.HttpResponce cannot resolved error solution.

1. Goto .

2. Click on 4.5.1 tar.gz under HttpClint.


3. Download the jar file and after done download please extract the download folder and goto lib folder.


4. Now open your android project and import all these external jars into your project. Select your android project by selecting project name. Then press ALT + ENTER to open project properties & click on Java Build Path.

java build path


add external jars

6. Now select all the JARs under lib folder.


Here you go now after importing all these libraries into your project apache error will be resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *