title: java.lang.NoSuchMethodError: No static method zzb(ZLjava/lang/Object;)V in class Lcom/google/android/gms/common/internal/zzaa; or its super classes
body: <p>I've looked at Firebase documentation, then searched all github issues and also all stack overflow posts but still I'm getting this error again and again. I've been stuck for hours, please have a look. It says-</p>
  
  <pre><code>java.lang.NoSuchMethodError: No static method zzb(ZLjava/lang/Object;)V in class Lcom/google/android/gms/common/internal/zzaa; or its super classes (declaration of 'com.google.android.gms.common.internal.zzaa' appears in /data/app/com.masquerade.priyanshu.topcoder-2/split_lib_dependencies_apk.apk)
  </code></pre>
  
  <p>According to other stack overflow posts when i try to change firebase core and database version, i get another bunch of errors saying incompatible version. </p>
  
  <p>This is build.gradle( Module: app)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  repositories {
      mavenLocal()
      flatDir {
          dirs 'libs'
      }
  }
  
  android {
      compileSdkVersion 26
      buildToolsVersion '26.0.2'
  
      defaultConfig {
          applicationId "com.masquerade.priyanshu.topcoder"
          minSdkVersion 16
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
  //    implementation 'com.android.support:appcompat-v7:26.1.0'
      compile 'com.android.support:appcompat-v7:26.1.0'
      compile 'com.android.support:design:26.1.0'
      implementation 'com.android.support.constraint:constraint-layout:1.0.2'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  //
  
      compile 'com.google.firebase:firebase-core:11.6.0'
      compile 'com.android.support:design:26.1.0'
      compile 'com.google.firebase:firebase-database:11.6.0'
   compile 'com.firebaseui:firebase-ui-storage:1.0.0'
      // Displaying images
      compile 'com.github.bumptech.glide:glide:3.6.1'
  compile 'com.android.support:cardview-v7:21.+'
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>This is build.gradle( Project:app ) -</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0'
          classpath 'com.google.gms:google-services:3.1.1'
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          mavenLocal()
          maven {
              url 'https://maven.fabric.io/public'
          }
  
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>EDIT - 
  Also I'm getting this warning on <code>compile 'com.google.firebase:firebase-core:11.6.0'</code></p>
  
  <p>The warning is - </p>
  
  <pre><code>All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 11.6.0, 11.4.2. Examples include com.google.android.gms:play-services-basement:11.6.0 and com.google.firebase:firebase-storage:11.4.
  </code></pre>