Build Failed with analytics and fcm

  • What went wrong:
    Execution failed for task ‘:processDebugGoogleServices’.

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

I am facing this issue whenever am using google analytics and fcm plugin at a time, if I use both plugins individually that is working fine. Please help me. Thanks in advance.