别名一词无法识别

时间:2018-09-09 13:07:17

标签: firebase flutter alias keytool

在尝试获取要在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

1 个答案:

答案 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指纹。