title: How to import org.apache.httpcomponents using Gradle
body: <p>Just trying to make some POST requests in an Android app. I was testing with <code>HttpClient 4.5.3</code> (<a href="https://hc.apache.org/downloads.cgi" rel="nofollow noreferrer">https://hc.apache.org/downloads.cgi</a>) in a standalone script. Everything worked, but when I tried to add it to the Android app, I found out I need to add some repackaged dependency due to versioning issues. So I added </p>
  
  <pre><code>compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1'
  </code></pre>
  
  <p>in Gradle and synced it without issues. However, I can't <code>import</code> any of the classes I need to do what I need. These are the imports I need:</p>
  
  <pre><code>import org.apache.http.HttpEntity; // "HttpEntity" is highlighted red
  import org.apache.http.NameValuePair;
  import org.apache.http.client.entity.UrlEncodedFormEntity;
  import org.apache.http.client.methods.CloseableHttpResponse;
  import org.apache.http.client.methods.HttpPost;
  import org.apache.http.impl.client.CloseableHttpClient;
  import org.apache.http.impl.client.HttpClients;
  import org.apache.http.message.BasicNameValuePair;
  import org.apache.http.util.EntityUtils;
  </code></pre>
  
  <p>What am I missing?</p>