0

I am trying to create an android app in which user can login with their gmail account. The steps that I have followed are:

  1. Created a Google Developers Console project.
  2. 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.

Jonathan Drapeau
  • 2,610
  • 2
  • 26
  • 32
Hari Krishnan
  • 5,992
  • 9
  • 37
  • 55

1 Answers1

1

After a lot of googling I got this command: "keytool -list -v -keystore "myapp.keystore"

We can get a unique SHA1 key for every project by specifying our keystore file in this command.

Hari Krishnan
  • 5,992
  • 9
  • 37
  • 55