'SHA1 SHA256 command

So I created an android app from the while running the "keytool" command from the "Authenticating your client" site for firebase on the project folder, I get this error

keytool -list -v \
-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

Error

enter image description here



Solution 1:[1]

I realised that I've made 2 mistakes : 1- Windows don't support two lines command so the command must be typed : "keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\debug.keystore" 2- Windows don't genere the user profile (%USERPROFILE%) automatically like MacOS or Linux so you should search the next path : C:\users\YourUserName.android Run the command and get the password that must be "android" and you get your code

Solution 2:[2]

Write the whole command on one line:

keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

Windows does not support to split a command line with \.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Henry