This is due to various SHA1 keys for debugging and version release.
The fact is that in order to enter Google you must add the SHA1 key to your google account, which you can get from programming or from the command line.
SHA1 key is different for signed apk. This way you have two SHA1s, one for debugging and version release. SHA1 for the release version can be obtained from the keystore file.
if you want to know more about this, you can check the link. This is very well explained there.
source share