title: Type mismatch: cannot convert from org.apache.http.HttpResponse
body: <p>I'm trying to update a MySQL data in Android by making HTTP Request but it gives me an error </p>
  
  <p>"Type mismatch: cannot convert from org.apache.http.HttpResponse to com.google.api.client.http.HttpResponse" </p>
  
  <p>on this line of code "httpClient.execute(httpPost)" </p>
  
  <pre><code>HttpResponse response = httpClient.execute(httpPost);
  </code></pre>
  
  <p>and it gives and option to quick fix by adding org.apache.http like</p>
  
  <pre><code>org.apache.http.HttpResponse response = httpClient.execute(httpPost);
  </code></pre>
  
  <p>Could someone tell me what I'm doing wrong here? Thank you so much!</p>
  
  <pre><code>protected String doInBackground(String... params) {
  
      HttpClient httpClient = new DefaultHttpClient();
      HttpPost httpPost = new HttpPost("http://---.com/---/approve_request.php");
  
      List&lt;NameValuePair&gt; nameValuePair = new ArrayList&lt;NameValuePair&gt;();
      nameValuePair.add(new BasicNameValuePair("status", "Approved"));
  
      try {
            httpPost.setEntity(new UrlEncodedFormEntity(nameValuePair));
          } catch (UnsupportedEncodingException e) {              
             e.printStackTrace();
          }
  
             try {
                org.apache.http.HttpResponse response = httpClient.execute(httpPost);  
                Log.d("Http Response:", response.toString());
  
           } catch (ClientProtocolException e) {             
                e.printStackTrace();
  
           } catch (IOException e) {              
                e.printStackTrace();
  
           }
  
      return null;
      }
  </code></pre>