title: Gradle failed to resolve dependencies
body: <p>I am working with Google API, so I added this script to <strong>build.gradle</strong> file (inside <strong>app/</strong> folder in my project) but I am getting errors "<strong>failed to resolve:com.google.apis</strong>:
  please help.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  
  compileSdkVersion 22
  buildToolsVersion "22.0.1"
  
  defaultConfig {
      applicationId "com.example.gmailquickstart"
      minSdkVersion 11
      targetSdkVersion 22
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'),
                  'proguard-rules.pro'
      }       
  }
  
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.1.1'
      compile 'com.google.android.gms:play-services:7.3.0'
      compile 'com.google.api-client:google-api-client:1.20.0'
      compile 'com.google.api-client:google-api-client-android:1.20.0'
      compile 'com.google.api-client:google-api-client-gson:1.20.0'
      compile 'com.google.apis:google-api-services-gmail:v1-rev29-1.20.0' 
  }
  </code></pre>