title: useLibrary 'org.apache.http.legacy' does not work
body: <p>I am using <code>Android 1.5</code> (Win 8.1 x64), I forked the <code>DrKLO/Telegram</code> repository on <code>GitHub</code> and cloned it on my local machine. Now whenever I try to sync Gradle or clean/build project, the Gradle sync fails with this message:</p>
  
  <blockquote>
    <p>Warning:Unable to find optional library: org.apache.http.legacy</p>
  </blockquote>
  
  <p><strong>build.gradle</strong> (Project: Telegram) [<a href="https://github.com/DrKLO/Telegram/blob/master/build.gradle" rel="nofollow noreferrer">DrKLO/Telegram/blob/master/build.gradle</a>]</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.3.1'
      }
  }
  </code></pre>
  
  <p><strong>build.gradle</strong> (Module: TMessagesProj) [<a href="https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/build.gradle" rel="nofollow noreferrer">DrKLO/Telegram/blob/master/TMessagesProj/build.gradle</a>]</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'com.android.support:support-v4:23.1.+'
      compile 'com.google.android.gms:play-services:3.2.+'
      compile 'net.hockeyapp.android:HockeySDK:3.6.+'
      compile 'com.googlecode.mp4parser:isoparser:1.0.+'
  }
  
  android {
      compileSdkVersion 23
      buildToolsVersion '23.0.2'
  
      useLibrary 'org.apache.http.legacy'
  
      ...
  }
  </code></pre>
  
  <p>I know there are many questions here, on StackOverflow, about this issue. But non of them have worked with me. I even tried some alternatives like copying the <code>org.apache.http.legacy.jar</code> file from <code>%USERPROFILE%\AppData\Local\Android\sdk\platforms\android-23\optional</code> to the <code>libs</code> directory, and added it to the dependencies</p>
  
  <pre><code>compile files('libs/org.apache.http.legacy.jar')
  </code></pre>
  
  <p>Although, I really dislike this solution, but it didn't work either and Gradle still fails ...</p>