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
).