title: Android Studio 0.8.6 Gradle project sync failed
body: <p>I just installed the last Android Studio 0.8.6(beta) on my MacOSx Snow leopard. After creating a basic project, I have an error message </p>
  
  <p><code>Gradle project sync failed ....</code></p>
  
  <p>I added the mavenCentral() to repositories, in my build.gradle file. But it does not fix it:</p>
  
  <p>this is my build.gradle:</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.12.2'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          mavenCentral()
      }
  }
  </code></pre>
  
  <p>The build.gradle in my android project looks like:</p>
  
  <pre><code>apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19.0.0"
  
      defaultConfig {
          applicationId "app.helloworld"
          minSdkVersion 19
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:19.+'
  }
  </code></pre>
  
  <p>Using the command line : </p>
  
  <pre><code>./gradlew assembleDebug --stacktrace
  </code></pre>
  
  <p>I otain this error message:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  </code></pre>
  
  <p><ul>
  <li>What went wrong:
  A problem occurred configuring root project 'HelloWorld'.</p>
  
  <blockquote>
    <p>Could not resolve all dependencies for configuration ':classpath'.
    Could not resolve com.android.tools.build:gradle:0.12.2.
     Required by:
         :HelloWorld:unspecified
    org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
    org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V</li>
    </ul>
    Thanks for your answer.</p>
  </blockquote>