由网友(天犹寒水犹寒)分享简介:在尝试获取要在Firebase中使用的调试证书指纹时,我们收到错误,声明未识别KeyTool,但我们下载了JDK并设置了路径,然后出现此错误:-alias : The term '-alias' is not recognized as the name of a cmdlet, function, script fi...
在尝试获取要在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%.androiddebug.keystor ...
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (-alias:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
推荐答案
您似乎没有键入完整的命令。您应该正在运行:
keytool -list -v -keystore %USERPROFILE%.androiddebug.keystore -alias androiddebugkey -storepass <store_password> -keypass <key_password>
(其中store_password
和key_password
默认为android
。
此命令的输出将包括您在Firebase控制台中输入的证书的SHA1和SHA256指纹。
相关推荐
最新文章