在导出 Android 应用程序向导中为 Android 应用程序生成密钥库? [英] Generate a keystore for an Android app in the Export Android Application wizard?

查看:30
本文介绍了在导出 Android 应用程序向导中为 Android 应用程序生成密钥库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Eclipse 中导出已签名的 Android 应用程序.

I'm trying to export a signed Android application in Eclipse.

我认为我的方向是正确的:

I think I'm going in the right direction:

  • 右击项目 > Android 工具 > 导出签名的应用程序包
  • 将出现导出 Android 应用程序向导.
  • 选择我要导出的项目,点击下一步.
  • 将显示密钥库选择屏幕.

看起来像这样(原谅我的 ascii,文件上传器不工作):

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."

  1. 真的可以用这个对话框创建一个密钥库吗?
  2. 如果没有,我该如何创建?到目前为止,我的 google-fu 只为我提供了失败的实验.我在 PC 上使用 Eclipse.

android 开发者页面中的 Compile and sign with Eclipse ADT 部分似乎是这样认为的会解决的,但我无法通过对话的这一部分.我可以很好地导出未签名的 .apk 文件.

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.

谢谢!

推荐答案

您应该能够使用对话框创建密钥库,是的.导航到要使用的文件夹后,在文件浏览窗口的文件名:"字段中键入名称,例如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.

或者,您可以按照 中的说明在命令行上创建它文档.

命令如下所示:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

例如:

keytool -genkey -v -keystore ~/dcaunt.keystore -alias dcaunt -keyalg RSA -keysize 2048 -validity 10000

这篇关于在导出 Android 应用程序向导中为 Android 应用程序生成密钥库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆