I am working on google maps and I am getting this error. I had done the following things:
Got My sha1 fingerprint.
Registered my project and
I encountered this problem when I opened my project with Android Studio on a different computer. Updating SHA-1 solved the problem.
Linux/MacOS
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Windows
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android