I am trying to create an android app in which user can login with their gmail account. The steps that I have followed are:
- Created a Google Developers Console project.
- Next to create the client ID, I need to provide the package name and SHA1 key as described here
My problem is when I am using an SHA1 key, it says "The signing fingerprint you specified is already used by another Android OAuth2 client."
I have googled about this issue and found that it is because i am already using the same SHA1 key for another project.
Now the problem is I am not clear with the concept of SHA1 key.In my knowledge, every project will have its own SHA1 key(which is some type of encrypted key for a particular project). I have found some commands for generating SHA1 key, but I cant find a good description about the variables used in generating this key.
Somehow I got a command to generate a keystore file (I am not clear about what it does). I am stuck here. I don't know whether I can get a SHA1 key from this keystore or not. So how should I generate a valid SHA1 key for a particular project? Please provide a better description for SHA1 key also if possible.