title: Flutter firebase version conflict firebase messaging
body: <p>I have a firebase flutter app, everything worked, but when I added firebase_messaging: ^5.1.4. The app gives this:</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <pre><code>* What went wrong:
  Could not determine the dependencies of task ':app:preDebugBuild'.
  &gt; In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[18.0.
    0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
  
    Dependency failing: com.google.firebase:firebase-messaging:18.0.0 -&gt; com.google.firebase:firebase-iid@[18.0.0], but fire
    base-iid version was 19.0.0.
  
    The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
    ifact with the issue.
    -- Project 'app' depends on project 'firebase_messaging' which depends onto com.google.firebase:firebase-messaging@18.0.
    0
    -- Project 'app' depends onto com.google.firebase:firebase-core@17.0.0
    -- Project 'app' depends on project 'cloud_functions' which depends onto com.google.firebase:firebase-functions@17.0.0
    -- Project 'app' depends on project 'firebase_core' which depends onto com.google.firebase:firebase-core@16.0.9
  
    For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
    endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
    github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
    uild.gradle file.
  </code></pre>
  
  <p>These are my other packages</p>
  
  <p>firebase_auth: ^0.11.1+12
  firebase_storage: ^3.0.4
  cloud_firestore: ^0.12.7+1
  cloud_functions: ^0.4.1+1</p>
  
  <p>(they all work)</p>
  
  <p>I have this in my build gradle:  classpath 'com.google.gms:google-services:4.2.0'</p>
  
  <p>implementation 'com.google.firebase:firebase-core:17.0.0'</p>
  
  <p>Is there a way of fixing this?</p>
  
  <p>Thank you very much!</p>