firebase auth api key not valid. please pass a valid api key
I was also facing this issue.
Solution: change the version of google services at project level gradle and sync your project and reinstall.
classpath 'com.google.gms:google-services:4.3.0'