title: Gradle - Could not create an instance of Tooling API implementation
body: <p>I'm trying to import a project from GitHub and build/run it on Android Studio. I am getting the following error: </p>
  
  <blockquote>
    <p>"Error:Could not create an instance of Tooling API implementation
    using the specified Gradle distribution
    '<a href="https://services.gradle.org/distributions/gradle-2.4-all.zip" rel="nofollow">https://services.gradle.org/distributions/gradle-2.4-all.zip</a>'."</p>
  </blockquote>
  
  <p>I have tried the following:</p>
  
  <ol>
  <li>Invalidate Cache and Restart</li>
  <li>Changing the distributionURL in gradle-wrapper/properties to 2.5 etc.</li>
  <li>Deleting build.gradle and restarting </li>
  </ol>
  
  <p>These are ideas I got from several other posts on stackoverflow so I cannot explain why I tried these. (I'm very fairly new to Android Studio). </p>
  
  <p>My <code>build.gradle</code> file looks like this:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.5.1'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      } }
  
  allprojects {
      repositories {
          jcenter()
      } }
  
  task clean(type: Delete) {
      delete rootProject.buildDir }
  </code></pre>