在导出 Android 应用程序向导中为 Android 应用程序生成密钥库?
我正在尝试在 Eclipse 中导出已签名的 Android 应用程序。
我认为我正朝着正确的方向前进:
- 右键单击项目> Android 工具 > 导出签名的应用程序包
- 将出现导出 Android 应用程序向导。
- 选择我要导出的项目,点击下一步。
- 出现“密钥库选择”屏幕。
它看起来像这样(请原谅我的 ascii,文件上传器无法正常工作):
[ ] Use existing keystore
[o] Create new keystore
Location: __________ [Browse]
Password: __________
Confirm: __________
我没有现有的密钥库,因此我单击“创建新密钥库”单选按钮。位置字段保持活动状态,必须填写,如果我浏览到某个目录,我希望密钥库在创建后进入,该对话框会抱怨“密钥库路径是一个目录”。
- 实际上可以使用此对话框创建密钥库吗?
- 如果没有,我该如何创建一个?到目前为止,我的 google-fu 只为我提供了失败的实验。我在 PC 上使用 Eclipse。
Android 开发者页面中的 使用 Eclipse ADT 进行编译和签名 部分似乎认为这会起作用出来,但我无法跳过对话框的这一部分。我可以很好地导出未签名的 .apk 文件。
谢谢你!
I'm trying to export a signed Android application in Eclipse.
I think I'm going in the right direction:
- Right click on project > Android Tools > Export Signed Application Package
- The Export Android Application wizard appears.
- Select the project I want to export, click Next.
- The Keystore Selection screen appears.
It looks like this (forgive my ascii, file uploader not working):
[ ] Use existing keystore
[o] Create new keystore
Location: __________ [Browse]
Password: __________
Confirm: __________
I don't have an existing keystore, so I click the "Create new keystore" radio button. The location field remains active, must be filled, and if I browse to some directory I'd like the keystore to go after it's created, the dialog complains that "Keystore path is a directory."
- Is it actually possible to create a keystore with this dialog?
- If not, how can I create one? My google-fu has provided only failed experiments for me so far. I'm using Eclipse on a PC.
The Compile and sign with Eclipse ADT section in the android developer page seems to think this will just work out, but I can't get past this part of the dialog. I can export unsigned .apk files just fine.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您应该能够使用该对话框创建密钥库,是的。导航到要使用的文件夹后,在文件浏览窗口的“文件名:”字段中输入名称,例如
sophie.keystore
。然后您应该能够继续。或者,您可以按照文档中的描述在命令行上创建它。
该命令如下所示:
例如:
You should be able to create a keystore with the dialog, yes. After navigating to the folder you want to use, type a name in the 'File name:' field in the file browse window, e.g.
sophie.keystore
. Then you should be able to proceed.Alternatively, you can create it on the command line as described in the docs.
The command looks like this:
for example:
如果您现在已经使用 sdk 和 adt 插件创建了一个应用程序(例如 hello world 应用程序),那么您在导出时必须选择
debug.keystore
文件。这些文件位于c:/users/.../.android/debug.keystore
中,之后当要求输入密码时。If you have created an app right now with the sdk and adt plugin, like the hello world app, then you'll have to chose the
debug.keystore
file while exporting. The files is inc:/users/.../.android/debug.keystore
, after that when asked for password.第1步:如何在eclipse中生成密钥库
第 2 步:浏览目录并输入 filename.keystore 并创建密码
[]
第 3 步:填写到期详细信息和许可证详细信息
2[]3
你完成了!
Step 1 : How to generate keystore in eclipse
Step 2: Browse Directory and put filename.keystore and create password
[]
Step 3: Fill Expiry details and License detail
2[]3
You are done!