title: AndroidStudio - Gradle Refresh Failed
body: <p>I was using the up to date version of android studio to build my app for android. The gradle wrapper set up the gradle installation and the project was build without errors.</p>
  
  <p>Eventually I started getting one error each time I restarted. </p>
  
  <blockquote>
    <p>Gradle: A problem occurred configuring project ':App'.</p>
    
    <p>Could not resolve all dependencies for configuration ':App:classpath'.
    Could not resolve com.android.tools.build:gradle:0.5.+.
    Required by:
    App:App:unspecified       </p>
    
    <blockquote>
      <p>org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V</p>
    </blockquote>
  </blockquote>
  
  <p>The issue could be fixed by executing gradlew again and builds went fine. But after the 0.3 android studio update and android plugin update to 0.6.+ I can't even execute gradlew anymore without getting this error message.</p>
  
  <p>I tried uninstalling android studio with all its configuration files, deleted the .gradle folders in the project and home directory and even the .m2 repository. I can't even start a new android project, it fails with the same error, so there should be no issue with my build.grade</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.6.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 18
      buildToolsVersion "18.1.1"
  
      defaultConfig {
          minSdkVersion 15
          targetSdkVersion 18
      }
  
      sourceSets {
          main {
              manifest.srcFile 'src/main/AndroidManifest.xml'
              java.srcDirs = ['src/main/java']
              res.srcDirs = ['src/main/res']
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:support-v4:18.0.0'
      compile 'org.jsoup:jsoup:1.7.2'
  }
  </code></pre>