【发布时间】:2019-07-28 22:35:27
【问题描述】:
1-在 C:\Program Files\Java\jdk1.8.0_191\bin 中运行 powersell
keytool.exe存在
2次运行
keytool -genkey -v -keystore release-key.keystore -alias key-alias -keyalg RSA -keysize 2048 -validity 10000
但显示此错误:
keytool : The term 'keytool' 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
+ keytool -genkey -v -keystore d:\release-key.keystore -alias key-alias ...
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (keytool:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
建议[3,General]:没有找到命令keytool,但在当前位置确实存在。默认情况下,Windows PowerShell 不会从当前位置加载命令。如果您信任此命令,请键入:“.\keytool”。有关详细信息,请参阅“get-help about_Command_Precedence”。
【问题讨论】:
标签: android react-native keytool