I am following this link to integrate Google sign-in in my android app.https://developers.google.com/identity/sign-in/android/start-integrating As given in last step on the
When you create an android application in firebase console you should set your application package in future it will be recorded to google-services.json.
So this error can happen when you try to add google services in the application which has a different package (Current application package will not match to which was recorded to google-services.json).