title: All gms/firebase libraries must use the exact same version specification Android
body: <p>While tring to update
   <code>'com.google.firebase:firebase-crash:10.2.0'</code> to <code>'com.google.firebase:firebase-crash:11.8.0'</code>
  I am getting this error</p>
  
  <blockquote>
    <p>All gms/firebase libraries must use the exact same version
    specification (mixing versions can lead to runtime crashes). Found
    versions 11.8.0, 10.2.0. Examples include
    com.google.android.gms:play-services-basement:11.8.0 and
    com.google.android.gms:play-services-base:10.2.0</p>
  </blockquote>
  
  <p>How can I solve this error?</p>
  
  <p><strong>app build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  apply plugin: 'com.google.firebase.firebase-crash'
  
  repositories {
      mavenCentral()
      maven {
          url "https://oss.sonatype.org/content/repositories/ksoap2-android-releases/"
      }
      maven { url 'https://maven.fabric.io/public' }
  }
  
  android {
      compileSdkVersion 27
      buildToolsVersion "27.0.3"
      dexOptions {
          jumboMode = true
      }
      defaultConfig {
          applicationId "com.myapp.myapp"
          minSdkVersion 16
          multiDexEnabled true
          targetSdkVersion 27
          versionCode 6
          versionName '1.1'
  
          ndk {
              abiFilters "armeabi-v7a", "x86"
          }
  
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
          debug {
              debuggable true
          }
      }
      productFlavors {
      }
  //    configurations {
  //        all*.exclude group: 'org.apache.commons'
  //    }
  
  }
  
  repositories {
      mavenCentral()
  }
  
  configurations.all {
      resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
          def requested = details.requested
          if (requested.group == 'com.android.support') {
              if (!requested.name.startsWith("multidex")) {
                  details.useVersion "$rootProject.ext.supportLibraryVersion"
              }
          }
  
      }
  }
  
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      compile project(':platform')
      compile project(':ahbottomnavigation')
      compile project(':mylibrary')
      compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
          transitive = true
      }
      compile('com.google.android.gms:play-services-cast-framework:10.2.0') {
          exclude group: 'com.android.support', module: 'mediarouter-v7'
      }
      compile project(':bottom-bar')
      compile project(':journey')
      compile "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
      compile "com.android.support:recyclerview-v7:$rootProject.ext.supportLibraryVersion"
      compile 'com.google.firebase:firebase-crash:11.8.0'
      compile 'com.github.rahatarmanahmed:circularprogressview:2.5.0'
      compile 'com.flurry.android:analytics:6.9.0'
      compile "com.android.support:mediarouter-v7:$rootProject.ext.supportLibraryVersion"
      compile 'com.googlecode.android-query:android-query:0.25.9'
      compile 'com.github.hotchemi:android-rate:1.0.1'
      compile "com.android.support:cardview-v7:$rootProject.ext.supportLibraryVersion"
      compile "com.android.support:support-v4:$rootProject.ext.supportLibraryVersion"
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      implementation 'com.facebook.android:facebook-login:4.31.0'
      testCompile 'junit:junit:4.12'
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p><strong>$rootProject.ext.supportLibraryVersion=='27.1.0'</strong></p>