title: Android google play services duplicate entry
body: <p>I'm trying to use google services in my Android app, but I was getting the following error:</p>
  
  <pre><code>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_11\bin\java.exe'' finished with non-zero exit value 2
  </code></pre>
  
  <p>I was told to try adding <code>multiDexEnabled = true</code> and now the error has changed to this:</p>
  
  <pre><code>Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
  &gt; java.util.zip.ZipException: duplicate entry: com/google/android/gms/auth/GooglePlayServicesAvailabilityException.class
  </code></pre>
  
  <p>I looked through my libs but wasn't able to find any conflicts between them.</p>
  
  <p>My jars:<br>
  gdata-client-1.0.jar <br>
  gdata-client-meta-1.0.jar<br>
  gdata-core-1.0.jar<br>
  gdata-spreadsheet-3.0.jar<br>
  gdata-spreadsheet-meta-3.0.jar<br>
  google-play-services.jar<br></p>
  
  <p>My project gradle file has the following dependencies:</p>
  
  <pre><code>classpath 'com.android.tools.build:gradle:1.2.3'
  classpath 'com.google.gms:google-services:1.3.0-beta1'
  </code></pre>
  
  <p>My module gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'com.google.gms.google-services'
  
  android {
      compileSdkVersion 22
      buildToolsVersion '22.0.1'
  
      defaultConfig {
          applicationId "com.mydomain.myproject"
          minSdkVersion 15
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
          multiDexEnabled = true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      compile 'com.android.support:appcompat-v7:22.2.0'
      compile 'com.google.android.gms:play-services:7.5.0'
      compile 'com.google.code.gson:gson:2.3.1'
      compile group: 'com.google.guava', name: 'guava', version: '18.0'
  }
  </code></pre>
  
  <p>Any help on fixing these errors would be appreciated.</p>