title: Unable to integrate Google Cloud Messaging with Android Project on Android Studio
body: <p>I'm trying to add Google Cloud Messaging to my app on Android Studio, but I seem to be unable to integrate with the library. The code for my build.gradle file is below, which I modified on the basis of suggestions here: <a href="http://developer.android.com/google/play-services/setup.html#Setup" rel="nofollow">http://developer.android.com/google/play-services/setup.html#Setup</a></p>
  
  <p>I should mention that I am also using Google+ login, which is not facing any issues. </p>
  
  <p>The app is unable to find the required files for GCM inside <code>com.google.android.gms</code> (specifically <code>common.ConnectionResult</code>, <code>common.GooglePlayServicesUtil</code> and <code>gcm.GoogleCloudMessaging</code>) while importing. </p>
  
  <pre><code>apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion '19.0.1'
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 18
      }
  
      signingConfigs {
          release {
              storeFile file("release.keystore")
              storePassword "****"
              keyAlias "****"
              keyPassword "****"
          }
      }
  
      buildTypes {
  
          release {
  
              signingConfig signingConfigs.release
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
      compile 'com.android.support:support-v4:18.0.0'
      // You must install or update the Google Repository through the SDK manager to use this dependency.
      // The Google Repository (separate from the corresponding library) can be found in the Extras category.
      compile 'com.google.android.gms:play-services:4.2.42'
  }
  </code></pre>