Reputation: 1773
How do I Authenticating Your Client correctly with google? I'm following this tutorial https://developers.google.com/android/guides/client-auth
I copy this text into my command prompt -
keytool -exportcert -list -v \ -alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore
I get this message back "-alias is not recognized as an internal or external command, operable program or batch file."
What am doing wrong?
Upvotes: 6
Views: 6452
Reputation: 11
best way to get your SHAI is
keytool -list -v -keystore "C:\Users\username\ .android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Upvotes: 1
Reputation: 455
I think the end goal is to generate the SHA1 key.
Best Alternative is to follow following steps:
Upvotes: 3
Reputation: 31
set your cmd path to jdk then run this cmd
WINDOWS
keytool -list -v -keystore %USERPROFILE%/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
MAC/LINUX
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Upvotes: 3
Reputation: 2202
The copied command shouldn't contain the backslash after -v and it must be placed in one single line, like this:
keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
Besides you have to change the %USERPROFILE% location in the command to the path where the .android directory located. (Maybe it is here: C:\User\YourUserName\ , but you have to check it if it's there)
Upvotes: 10