you do not attach your SHA-1 certificate fingerprint to the "Google Developer Console" on the OAuth 2.0 client IDs. First go to the Google Consol and add the SHA-1 fingerprint in both the KEY and OAuth 2.0 Client Identifiers APIs. You may have added the fingerprint to the KEY API, but not to the OAuth 2.0 client identifiers.
So follow below:
1): Open the Google Developer Console .
2): Go to the sidebar of the menu and press API MANAGER.
3): Click Credentials.
4): Now click Create Credentials.
5): Select OAuth Client ID and SHA-1 fingerprint.
source share