title: Getting error while mixing dependencies versions
body: <p>I am getting an error as seen below image <a href="https://i.stack.imgur.com/Y5Y4C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y5Y4C.png" alt="Error Conflict Image "></a>.</p>
  
  <p>I have tried many links and checked out stuffs on stackoverflow and managed to resolved most part but not in entirely .Is there a easier way to resolve this version mixing part .</p>
  
  <p>Below is my gradle file </p>
  
  <pre><code>    /**********My Gradle ************************/
  buildscript {
      repositories {
          maven { url 'https://maven.fabric.io/public' }
      }
  
      dependencies {
          classpath 'io.fabric.tools:gradle:1.+'
      }
  }
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  repositories {
      maven { url 'https://maven.fabric.io/public' }
  }
  
  
  
  android {
      compileSdkVersion 26
      buildToolsVersion '27.0.3'
  
      defaultConfig {
          applicationId "com.example.company"
          minSdkVersion 15
          versionCode 8  //Update on store 25th may 18
          versionName "2.1"
  
          targetSdkVersion 26
          multiDexEnabled true
  
      }
  
  
  
      dexOptions {
          javaMaxHeapSize "4g"
      }
  
      /*buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              signingConfig signingConfigs.release
          }
      }*/
      buildTypes {
          release {
              debuggable false
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
      useLibrary 'org.apache.http.legacy'
  
  }
  
  dependencies {
      implementation files('libs/jxl-2.6.10.jar')
      /*implementation 'com.android.support:appcompat-v7:23.1.1'*/
  
      implementation files('libs/ksoap2-android-assembly-3.4.0-jar-with-dependencies.jar')
  
  
  
      implementation 'com.android.support:design:24.2.1'
      implementation 'com.android.support:appcompat-v7:26.0.0'
      implementation 'com.android.support:cardview-v7:26.0.0'
      implementation 'com.google.android.gms:play-services-basement:10.2.1'
      implementation 'com.google.android.gms:play-services:10.2.1'
      implementation 'com.android.support:support-v4:26.0.0'
      implementation 'com.github.bumptech.glide:glide:3.6.0'
      implementation 'com.android.support:multidex:1.0.0'
      implementation 'com.google.android.gms:play-services-location:9.6.1'
      implementation 'com.google.android.gms:play-services-maps:9.6.1'
      implementation 'com.google.android.gms:play-services:9.6.1'
      implementation 'com.google.android.gms:play-services-identity:9.6.1'
      implementation 'com.google.android.gms:play-services-plus:9.6.1'
      implementation 'com.github.boxme:squarecamera:1.1.0'
      implementation 'com.squareup.picasso:picasso:2.5.2'
      implementation 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
  //    implementation 'com.google.firebase:firebase-messaging:10.2.1'
      implementation 'com.google.firebase:firebase-messaging:11.0.4'
      implementation 'id.zelory:compressor:2.1.0'
      implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
      implementation 'com.android.support:multidex:1.0.0'
      /*implementation 'net.hockeyapp.android:HockeySDK:5.0.1'*/
      implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
          transitive = true;
      }
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>Below is my Error Log :</p>
  
  <pre><code> org.gradle.api.GradleException: Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.2.1.
      at com.google.gms.googleservices.GoogleServicesTask.checkVersionConflict(GoogleServicesTask.java:161)
      at com.google.gms.googleservices.GoogleServicesTask.action(GoogleServicesTask.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
      at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
      at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
      at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
      at 
  </code></pre>
  
  <p>I have gone through below post and manage to resolve some error but not entirely 
  <a href="https://stackoverflow.com/questions/49158936/mixing-dependencies-versions">Mixing dependencies versions</a></p>
  
  <p>.</p>
  
  <p>Please check out .</p>