在尝试获取要在Firebase中使用的调试证书指纹时,我们收到一个错误,声称无法识别keytool,但是我们下载了jdk并设置了路径,然后出现了该错误:
-alias : The term '-alias' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystor ...
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (-alias:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
答案 0 :(得分:0)
您似乎没有输入完整的命令。您应该正在运行:
mutate
(其中keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore -alias androiddebugkey -storepass <store_password> -keypass <key_password>
和store_password
默认为key_password
。
此命令的输出将包括您在Firebase控制台中输入的证书的SHA1和SHA256指纹。