title: google gms:play service conflict with firebase
body: <p>i am trying to add firebase-messaging in my project where i am already using google maps. so when i add firebase dependecy </p>
  
  <pre><code>compile 'com.google.firebase:firebase-messaging:10.0.1'
  </code></pre>
  
  <p>i got following error.</p>
  
  <blockquote>
    <p>Error:The number of method references in a .dex file cannot exceed 64K.
    Learn how to resolve this issue at <a href="https://developer.android.com/tools/building/multidex.html" rel="nofollow noreferrer">https://developer.android.com/tools/building/multidex.html</a>
    Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException</p>
  </blockquote>
  
  <p>how can i solve this issue 
  here is my build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 25
  buildToolsVersion "23.0.1"
  
  defaultConfig {
      applicationId "com.edesign.astutesol.sallaticustomerapp"
      minSdkVersion 19
      targetSdkVersion 25
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  }
  
  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:design:25.1.1'
  compile 'com.mcxiaoke.volley:library:1.0.15'
  compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
  compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
  
  compile 'com.google.android.gms:play-services:10.0.1'
  compile 'com.google.android.gms:play-services-auth:10.0.1'
  apply plugin: 'com.google.gms.google-services'
  compile 'com.google.firebase:firebase-messaging:10.0.1'
  
  compile 'com.android.support:cardview-v7:25.+'
  compile 'org.lucasr.twowayview:twowayview:0.1.4'
  
  }
  </code></pre>
  
  <p>these are google dependencies </p>
  
  <pre><code>compile 'com.google.android.gms:play-services:10.0.1'
  compile 'com.google.android.gms:play-services-auth:10.0.1'
  apply plugin: 'com.google.gms.google-services'
  compile 'com.google.firebase:firebase-messaging:10.0.1'
  </code></pre>