title: Gradle build fails looking for Google Play Services in Android Studio
body: <p>I'm trying to run my project in Android Studio 0.3.6, but I always get this error :</p>
  
  <pre><code>Gradle: A problem occurred configuring root project 'myapp_android'.
  &gt; Failed to notify project evaluation listener.
  &gt; Could not resolve all dependencies for configuration ':_DebugCompile'.
    &gt; Could not resolve com.google.android.gms:play-services:3.1.36.
      Required by:
          :myapp_android:unspecified
       &gt; Could not GET 'http://maven.hq.couchbase.com/nexus/content/repositories/releases/com/google/android/gms/play-services/3.1.36/play-services-3.1.36.pom'. Received status code 503 from server: Service Temporarily Unavailable
  </code></pre>
  
  <p>Here is my complete <code>build.gradle</code> file :</p>
  
  <pre><code>home = System.getenv("ANDROID_HOME")
  
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.5.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
      maven {
          url "http://maven.hq.couchbase.com/nexus/content/repositories/releases/"
      }
  
      maven {
          url "http://files.couchbase.com/maven2/"
      }
  }
  
  dependencies {
      compile 'com.android.support:support-v4:18.0.+'
      compile 'com.android.support:appcompat-v7:18.0.+'
      compile 'com.google.android.gms:play-services:3.1.36'
      compile 'com.couchbase.cblite:CBLite:1.0.0-beta'
      compile 'com.couchbase.cblite:CBLiteEktorp:1.0.0-beta'
      compile 'com.couchbase.cblite:CBLiteJavascript:1.0.0-beta'
      compile fileTree(dir: 'libs', include: '*.jar')
  
      instrumentTestCompile 'com.jayway.android.robotium:robotium-solo:4.3'
  }
  
  android {
      compileSdkVersion 18
      buildToolsVersion "18.1"
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
  
          instrumentTest.setRoot('tests')
  
          debug.setRoot('build-types/debug')
          release.setRoot('build-types/release')
      }
  }
  
  tasks.withType(Compile) {
      options.encoding = 'UTF-8'
  }
  </code></pre>
  
  <p>And finally, my SDK Manager :</p>
  
  <p><img src="https://i.stack.imgur.com/QQjfn.png" alt="Android SDK Manager"></p>
  
  <p>I tried with many versions of Android Studio (0.2.8, 0.2.9, 0.2.13, 0.3.2, 0.3.6) and it's always the same. I tried changing the Play Services version, I tried changing the order of the dependencies, nothing did the trick. </p>
  
  <p>Is there something not correct with my setup? I looked for answers and pretty much everything I found (<code>build.gradle</code> structure, SDK missing items) was already fine...</p>