Error While Build - Google Service

  • What went wrong:
    Could not determine the dependencies of task ‘:app:preDebugBuild’.
    In project ‘app’ a resolved Google Play services library dependency depends on another at an exact version (e.g. “[19.0.
    1]”, but isn’t being resolved to that version. Behavior exhibited by the library will be unknown.


    Dependency failing: com.google.firebase:firebase-messaging:19.0.1 -> com.google.firebase:firebase-iid@[19.0.1], but fire
    base-iid version was 20.1.5.


    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 onto com.google.firebase:firebase-messaging@19.+
    – Project ‘app’ depends onto com.google.android.gms:play-services-tagmanager@16.0.8
    – Project ‘app’ depends onto com.google.firebase:firebase-perf@18.+
    – Project ‘app’ depends onto com.google.android.gms:play-services-measurement-api@17.4.3
    – Project ‘app’ depends onto com.google.firebase:firebase-core@17.+
    – Project ‘app’ depends onto com.google.android.gms:play-services-tagmanager@16.+
    – Project ‘app’ depends onto com.google.firebase:firebase-config@18.0.0
    – Project ‘app’ depends onto com.google.firebase:firebase-iid@20.1.5
    – Project ‘app’ depends onto com.google.firebase:firebase-config@18.+
    – Project ‘app’ depends onto com.google.android.gms:play-services-tagmanager-api@16.0.8
    – Project ‘app’ depends onto com.google.firebase:firebase-analytics@17.4.3
    – Project ‘app’ depends onto com.google.firebase:firebase-perf@18.0.1
    – Project ‘app’ depends onto com.google.firebase:firebase-messaging@19.0.1
    – Project ‘app’ depends onto com.google.firebase:firebase-core@17.4.3


    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.
    – Project ‘app’ depends onto com.google.firebase:firebase-core@17.4.3


    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.

Can somebody help on this