术语别名不被识别 [英] The term alias is not recognized

查看:0
本文介绍了术语别名不被识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试获取要在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_passwordkey_password默认为android

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

这篇关于术语别名不被识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆