Android 导出:如何创建 .keystore 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11558120/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android export : how to create .keystore file?
提问by Rob
I'm trying to export my Android application from Eclipse, and so I'm stuck at the 2nd step where I need to create a new keystore. What should I put in the location field ?
我正在尝试从 Eclipse 导出我的 Android 应用程序,因此我被困在需要创建新密钥库的第二步。我应该在位置字段中输入什么?
Thanks for your advices.
谢谢你的建议。
回答by Paresh Mayani
I'm stuck at the 2nd step where I need to create a new keystore. What should I put in the location field ?
我被困在需要创建新密钥库的第二步。我应该在位置字段中输入什么?
That location field is the location where you want to keep new keystore file and give name to keystore file.
该位置字段是您要保留新密钥库文件并为密钥库文件命名的位置。
回答by I?igo
You have this official guide to achieve that,
你有这个官方指南来实现这一点,
http://developer.android.com/tools/publishing/app-signing.html
http://developer.android.com/tools/publishing/app-signing.html
回答by Muzaffar Mahmood
Go to terminal by typing cmd in seach and run command prompt.
在搜索中输入 cmd 进入终端并运行命令提示符。
In terminal write cd %JAVA_HOME%\bin
it will take you to java bin directory.
在终端写入cd %JAVA_HOME%\bin
它会带你到 java bin 目录。
Here you paste following line:
在这里粘贴以下行:
keytool -genkey -v -keystore e:\store-key.keystore -alias store-key-alias -keyalg RSA -keysize 2048 -validity 10000
It prompt you for your name and other things just give these things to terminal and password when it ask and your key file will be generated in E drive with the name of store-key.keystore
它会提示您输入您的姓名和其他内容,只需在询问时将这些内容提供给终端和密码,您的密钥文件将在 E 驱动器中生成,名称为 store-key.keystore