title: Cannot resolve symbol: 'HttpClient', even after adding dependency
body: <p>I have tried to add various dependencies of <code>Apache commons libs</code>.</p>
  
  <p>I have tried <code>httpClient</code>, <code>httpCore</code> and many different versions. Also from external jar and also from maven suggestions.</p>
  
  <p>I ended up with this in my <code>gradle</code>:</p>
  
  <pre><code>compile 'org.apache.httpcomponents:httpcore:4.4.1'
  compile 'org.apache.httpcomponents:httpclient:4.3.5'
  </code></pre>
  
  <p>It still gives me <code>Cannot resolve HttpClient</code> and <code>Cannot resolve HttpPost</code> etc.</p>
  
  <p>It doesn't offer me to import the classes.</p>
  
  <p>Code for doing HTTP post:</p>
  
  <pre><code> // Create a new HttpClient and Post Header
              HttpClient httpclient = new DefaultHttpClient();
              HttpPost httppost = new HttpPost("http://fdsgsfdgs);
  
              try {
                  // Add your data
                  List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;&gt;(2);
                  nameValuePairs.add(new BasicNameValuePair("id", null));
                  nameValuePairs.add(new BasicNameValuePair("name", "TestFromAppSpell"));
                  nameValuePairs.add(new BasicNameValuePair("damage", "12345"));
                  nameValuePairs.add(new BasicNameValuePair("heal", "50"));
                  nameValuePairs.add(new BasicNameValuePair("description", "Testtestest"));
                  nameValuePairs.add(new BasicNameValuePair("coordinates", coordinates));
                  httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  
                  // Execute HTTP Post Request
                  HttpResponse response = httpclient.execute(httppost);
                  System.out.println("Http post done!");
              } catch (ClientProtocolException e) {
                  // TODO Auto-generated catch block
              } catch (IOException e) {
                  // TODO Auto-generated catch block
              }
  </code></pre>
  
  <p>Gradle file:</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:1.2.3'
      }
  }
  
  apply plugin: 'com.android.application'
  
  repositories {
      jcenter()
  }
  
  dependencies {
      compile 'com.android.support:support-v4:23.0.0'
      compile 'com.android.support:gridlayout-v7:23.0.0'
      compile 'com.android.support:cardview-v7:23.0.0'
      compile 'org.apache.httpcomponents:httpcore:4.4.1'
      compile 'org.apache.httpcomponents:httpclient:4.3.5'
  }
  
  dependencies {
      compile 'com.android.support:appcompat-v7:+'
      compile fileTree(dir: 'libs', include: ['*.jar'])
  }
  
  // The sample build uses multiple directories to
  // keep boilerplate and common code separate from
  // the main sample code.
  List&lt;String&gt; dirs = [
      'main',     // main sample code; look here for the interesting stuff.
      'common',   // components that are reused by multiple samples
      'template'] // boilerplate code that is generated by the sample template process
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.0"
  
      defaultConfig {
          minSdkVersion 11
          targetSdkVersion 23
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_7
          targetCompatibility JavaVersion.VERSION_1_7
      }
  
      sourceSets {
          main {
              dirs.each { dir -&gt;
                  java.srcDirs "src/${dir}/java"
                  res.srcDirs "src/${dir}/res"
              }
          }
          androidTest.setRoot('tests')
          androidTest.java.srcDirs = ['tests/src']
  
      }
  
  }
  </code></pre>