通过keytool获取私钥进行应用发布
我无法在网上找到一个教程来逐步介绍如何使用 JDK 中的 keytool 生成合适的密钥。
这个:
http://developer.android.com/guide/publishing/app-signing .html
讨论了它并提供了命令,但它实际上并没有说明在何处以及在哪个文件夹中键入命令。我确信我在这里错过了一些简单的东西,但是有人可以指导我从哪里开始吗?
I can't find a tutorial online that gives me the step by step process on how to generate a suitable key using the keytool in the JDK.
This:
http://developer.android.com/guide/publishing/app-signing.html
talks about it and gives commands, but it doesn't actually say where and in what folder to key in the commands. I am sure I am missing something easy here, but could anyone guide me to where I need to start with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在命令提示符下运行所有这些命令。我假设你正在使用 Windows 机器进行开发。
开始-->运行--> cmd
类型:java -version
您应该得到一个返回的版本号,如“Java v1.62”或类似的版本号,或者一个错误“未找到”
如果您得到下一行返回的版本,那么您可以从提示符运行 keytool 命令您当前处于开启状态。
如果出现“未找到”错误,则 cd/ 进入找到 keytool 命令的 jdk 文件夹。从此处找到的提示符运行命令。
我强烈推荐使用eclipse来开发。作为导出和签署应用程序的一部分,Eclipse 将从 GUI 创建一个新的密钥库。真正简单又容易。
Run all of these commands in a command prompt. I am assuming you are using a windows machine to develop with.
Start --> Run --> cmd
type: java -version
You should either get a version number returned like "Java v1.62" or similar or an error "not found"
If you get the version returned on the next line then you can run the keytool command from the prompt you are currently on.
If you get a "not found" error then cd/ into the jdk folder where the keytool command is found. Run the commands from the prompt found here.
I really reccommend using eclipse to develop. Eclipse, as part of exporting and signing your app, will create a new keystore from a GUI. Real simple and easy.