title: Android studio APK buil error transformClassesWithJarMergingForDebug
body: <p>I'm trying to build APK, but there is an error when I try to make it.</p>
  
  <p>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.</p>
  
  <blockquote>
    <p>com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/gcm/PendingCallback.class</p>
  </blockquote>
  
  <p>Following is my build.gradle(Module:app)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 25
      buildToolsVersion "25.0.2"
      defaultConfig {
          applicationId "jordan.personicle"
          minSdkVersion 19
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
          multiDexEnabled true
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
  
      compile files('libs/ajt-2.9.jar', 'libs/javaml-0.1.7.jar')
      compile 'com.android.support:appcompat-v7:25.3.1'
      compile 'com.android.support:design:26.+'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      compile 'com.google.android.gms:play-services:11.0.1'
      compile 'com.google.firebase:firebase-database:10.2.1'
      compile 'com.google.firebase:firebase-core:10.0.1'
      compile 'com.google.firebase:firebase-messaging:10.0.1'
  
      compile 'com.firebase:firebase-jobdispatcher:0.6.0'
  
      compile 'org.jsoup:jsoup:1.7.3'
      compile 'com.android.support:multidex:1.0.0'
  
      testCompile 'junit:junit:4.12'
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>This is my build.gradle (Project)</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
          repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.3'
          classpath 'com.google.gms:google-services:3.0.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>I think there is no duplication for gcm. What is the problem?</p>
  
  <p>Thanks,</p>