title: java.lang.NoSuchMethodError: No static method - Firebase issue despite not using FirebaseMessagingService?
body: <p>So I'm using Firebase to get my app analytics but my users have been reporting crashes which I couldn't re-create (the crash) in any of my test devices.</p>
  
  <p>I wrote a bug reporting library within my app which would send me the verbose logs via email and found out the main cause.</p>
  
  <p>Surprisingly, I am not even using FirebaseMessagingService in my app so would like to know if someone can help me out here? Tried searching for the solution but couldn't find it so creating a thread here.</p>
  
  <p>Here's the log:</p>
  
  <pre><code>ava.lang.NoSuchMethodError: No static method zzad()Lcom/google/firebase/iid/zzan; in class Lcom/google/firebase/iid/zzan; or its super classes (declaration of 'com.google.firebase.iid.zzan' appears in /data/app/com.myapp.myapp-1/base.apk:classes2.dex)
  at com.google.firebase.messaging.FirebaseMessagingService.zzb(Unknown Source)
  at com.google.firebase.iid.zzb.onStartCommand(Unknown Source)
  at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3770)
  at android.app.ActivityThread.-wrap23(ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:154)
  at android.app.ActivityThread.main(ActivityThread.java:6816)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
  </code></pre>
  
  <p>My build.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  //apply plugin: 'com.google.android.gms.oss-licenses-plugin'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "com.myapp.myapp"
          minSdkVersion 18
          targetSdkVersion 28
          multiDexEnabled true
          resConfigs "en"
          compileOptions {
              sourceCompatibility JavaVersion.VERSION_1_7
              targetCompatibility JavaVersion.VERSION_1_7
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      packagingOptions {
          exclude 'META-INF/DEPENDENCIES.txt'
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/DEPENDENCIES'
          exclude 'META-INF/notice.txt'
          exclude 'META-INF/license.txt'
          exclude 'META-INF/dependencies.txt'
          exclude 'META-INF/LGPL2.1'
          exclude 'META-INF/services/com.fasterxml.jackson.core.ObjectCodec'
          exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
      dexOptions {
          jumboMode true
      }
  }
  
  repositories {
      google()
      flatDir {
          dirs 'libs'
      }
      maven {
          url "https://jitpack.io"
      }
      jcenter()
  }
  
  dependencies {
      implementation 'com.devbrackets.android:exomedia:4.0.3'
  
      // Radio
      implementation 'com.google.android.exoplayer:exoplayer:r2.4.3'
      implementation 'com.cleveroad:audiovisualization:1.0.1'
      implementation 'com.google.code.gson:gson:2.8.5'
  
      // General
      implementation 'org.jsoup:jsoup:1.11.2'
      implementation 'com.onesignal:OneSignal:3.10.6'
      implementation 'com.squareup.picasso:picasso:2.71828'
      implementation 'com.duolingo.open:rtl-viewpager:1.0.2'
      implementation 'com.github.chrisbanes:PhotoView:1.3.1'
      implementation 'com.android.support:multidex:1.0.3'
  
      // Google Support Libraries
      implementation 'com.android.support:multidex-instrumentation:1.0.3'
      implementation "com.android.support:exifinterface:$supportlib_version"
      implementation "com.android.support:cardview-v7:$supportlib_version"
      implementation "com.android.support:appcompat-v7:$supportlib_version"
      implementation "com.android.support:recyclerview-v7:$supportlib_version"
      implementation "com.android.support:design:$supportlib_version"
      implementation "com.android.support:support-v4:$supportlib_version"
      implementation "com.android.support:support-core-utils:$supportlib_version"
      implementation "com.android.support:support-media-compat:$supportlib_version"
      implementation "com.android.support:customtabs:$supportlib_version"
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  
      // Google Services
      implementation "com.google.android.gms:play-services-oss-licenses:$gps_version"
      implementation "com.google.android.gms:play-services-gcm:$gps_version"
      implementation "com.google.android.gms:play-services-ads:$gps_version"
      implementation files('libs/YouTubeAndroidPlayerApi.jar')
  
      // Firebase
      implementation 'com.google.firebase:firebase-core:16.0.3'
  
      // Flurry Analytics
      implementation 'com.flurry.android:analytics:11.6.0@aar'
  
      // About Fragment
      implementation project(':library')
      implementation project(':crashlib')
  
      // Easyrest Library
      implementation('com.github.fcopardo:easyrest:v1.4.2@aar') {
          transitive = true
      }
  
      // ta4j for technical analysis
      implementation 'org.ta4j:ta4j-core:0.11'
  
      // display libraries
      implementation 'com.github.florent37:fiftyshadesof:1.0.0'
  
      // retrofit for quick and safe network communication
      implementation 'com.squareup.retrofit2:retrofit:2.5.0'
      implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
      implementation 'com.github.faruktoptas:RetrofitRssConverterFactory:0.0.2'
  
      // RxJava for multithreaded network requests with retrofit
      implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
      implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
  
      // PriceChart Library
      implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
  
      // Okhttp And Logging
      implementation 'com.squareup.okhttp3:okhttp:3.14.0'
      implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1'
  
      // Custom font lib
      implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
  
      // Material Dialogs - Sort By Menu
      implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
  
      // Toggle Button - Currency Card
      implementation 'com.nex3z:toggle-button-group:1.1.2'
  
      // Favrorite Button - Star
      implementation 'com.github.ivbaranov:materialfavoritebutton:0.1.5'
  
      // Bottom Dialog Sheet
      implementation 'com.github.marcoscgdev:DialogSheet:1.0.5'
  
      // Intro Lib
      implementation 'agency.tango.android:material-intro-screen:0.0.5'
  
      implementation 'com.jakewharton.threetenabp:threetenabp:1.2.0'
  
  }
  apply plugin: 'com.google.gms.google-services'
  // Work around
  com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
  </code></pre>
  
  <p>Project gradle:</p>
  
  <pre><code>allprojects {
      repositories {
          google()
          jcenter()
          maven {
              url "https://maven.google.com"
          }
          maven {
              url 'https://jitpack.io'
          }
      }
  }
  
  buildscript {
      dependencies {
          classpath 'com.android.tools.build:gradle:3.3.2'
          classpath 'com.google.gms:google-services:4.2.0'
          classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
          classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
          //classpath 'com.google.android.gms:oss-licenses-plugin:0.9.4'
      }
      repositories {
          google()
          maven {
              url 'https://maven.google.com/'
          }
          jcenter()
      }
  }
  
  ext {
      supportlib_version = '28.0.0'
      gps_version = '[16.0.0, 17.0.0)'
      fb_version = '[15.0.0, 17.0.0)'
      archRoomVersion = "1.0.0"
  }
  
  //Ensure that all dependencies use the same version of the Android Support library
  subprojects {
      project.configurations.all {
          resolutionStrategy.eachDependency { details -&gt;
              if (details.requested.group == 'com.android.support'
                      &amp;&amp; !details.requested.name.contains('multidex')) {
                  details.useVersion "$supportlib_version"
              }
              if (details.requested.group == 'com.google.android.gms'
                      &amp;&amp; !details.requested.name.contains('multidex')) {
                  details.useVersion "$gps_version"
              }
              if (details.requested.group == 'com.google.firebase'
                      &amp;&amp; !details.requested.name.contains('multidex')) {
                  details.useVersion "$fb_version"
              }
          }
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>