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.


  1. Very useful suggetion

  2. thanks for your useful post

  3. To solve The import org.apache.http.HttpResponce error I add httpcore-4.4.4.jar and httpclient-4.5.2.jar external jars into my project but it will give Duplicate files copied in APK META-INF/DEPENDENCIES error

Leave a Reply

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