Download the google-services.json file from Firebase.
Close Android Studio.
Restart your system.
Open Android Studio.
Copy and paste the google-services.json file to the following location:
[Project Name]/android/app/google-services.json.
Rebuild the project.