别名一词无法识别

问题描述 投票:0回答:1

在尝试获取在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
firebase flutter alias keytool
1个回答
0
投票

看来你没有输入完整的命令。你应该运行:

keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore -alias androiddebugkey -storepass <store_password> -keypass <key_password>store_passwordkey_password默认为android

此命令的输出将包括您在Firebase控制台中输入的证书的SHA1和SHA256指纹。

© www.soinside.com 2019 - 2024. All rights reserved.