首先,我在vscode中输入的所有内容都不起作用,总是会出现错误,但当我输入以下内容时:
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
进入终端时,弹出以下消息:
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.
当我在flutter控制台中输入相同的内容时,我得到以下信息:
'keytool' is not recognized as an internal or external command, operable program or batch file.
基本上有没有人可以帮我解决这些问题
发布于 2018-05-31 18:44:17
从docs on preparing an Android app for release
备注:
keytool
可能不在您的路径中。它是Java JDK的一部分,Java JDK作为Android Studio的一部分安装。对于具体的路径,运行flutter doctor -v
并查看打印在“Java binary at:”之后的路径,然后使用该完全限定的路径将java
替换为keytool
。
在我的机器中,该工具位于
/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/keytool
https://stackoverflow.com/questions/50620767
复制相似问题