title: Error: more than one library with package name 'com.google.android.gms'
body: <p>I'm using Android Studio 0.8.2, and created a project with Android 4.1 and Android Wear 4.4.  I need to integrate it with Google Play Services.</p>
  
  <p>I'm trying to follow the Google Play Services setup page for Android Studio here:
  <a href="https://developer.android.com/google/play-services/setup.html">https://developer.android.com/google/play-services/setup.html</a></p>
  
  <p>In Step 2, it says to add this dependency:</p>
  
  <pre><code>compile 'com.google.android.gms:play-services:5.0.77'
  </code></pre>
  
  <p>However, upon Sync, I get this message:</p>
  
  <pre><code>Error:Execution failed for task ':mobile:processDebugResources'.
  &gt; Error: more than one library with package name 'com.google.android.gms'
    You can temporarily disable this error with android.enforceUniquePackageName=false
    However, this is temporary and will be enforced in 1.0
  </code></pre>
  
  <p>Here is my complete build.gradle file inside the mobile module:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 20
      buildToolsVersion "20.0.0"
  
      defaultConfig {
          applicationId "com.OptimizedPrime.locationweartabs"
          minSdkVersion 16
          targetSdkVersion 20
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      wearApp project(':wear')
      compile 'com.google.android.gms:play-services-wearable:+'
      compile 'com.google.android.gms:play-services:5.0.77'
      // You must install or update the Support Repository through the SDK manager to use this dependency.
      compile 'com.android.support:support-v13:19.+'
  }
  </code></pre>
  
  <p>It appears that the recommended dependency is conflicting with the wearable compile statement.  I do want to retain wearable support, and at the same time need Google Play Services.  How do I fix this?</p>