Android 当我为get keyrelease运行keytoll时,会显示此错误
1-在C:\Program Files\Java\jdk1.8.0\U 191\bin中运行powersell keytool.exe是否存在 2轮 keytool-genkey-v-keystore release-key.keystore-alias密钥别名 -keyalg RSA-密钥大小2048-有效期10000 但请显示此错误:Android 当我为get keyrelease运行keytoll时,会显示此错误,android,react-native,keytool,Android,React Native,Keytool,1-在C:\Program Files\Java\jdk1.8.0\U 191\bin中运行powersell keytool.exe是否存在 2轮 keytool-genkey-v-keystore release-key.keystore-alias密钥别名 -keyalg RSA-密钥大小2048-有效期10000 但请显示此错误: keytool : The term 'keytool' is not recognized as the name of a cmdlet, functio
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,常规]:未找到命令keytool,但它确实存在于当前位置。默认情况下,Windows PowerShell不会从当前位置加载命令。如果您信任此命令,请改为键入:“.\keytool”。有关详细信息,请参阅“获取有关命令优先级的帮助”。有两种解决方案
请确保在使用第一个解决方案时使用
\keytool.exe
而不是keytool我确实这样做了,但我得到了这个结果我的环境是C:\Program Files\Java\jdk1.8.0\u 191,我将它们更改为C:\Program Files\Java\jdk1.8.0\u 191\bin谢谢您的帮助