This error is related with Firebase - google-services.json file is not setup properly.
How to fix the issue:
1) Open www.firebase.com and create here new android app with same package name as you have in your app/build.gradle file.
2) Your new google-services.json file will be automatically downloaded
3) Replace old google-services.json content with the new one from firebase.
4) Done.