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 Service End for Bintray, JCenter, GoCenter, and ChartCenter | JFrog) 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.