在导出Android应用程序向导中为Android应用程序生成密钥库? [英] Generate a keystore for an Android app in the Export Android Application wizard?
问题描述
我想我正在朝着正确的方向发展:
- 右键单击项目> Android工具> 导出签名的应用程序包
- 出现导出Android应用程序向导。
- 选择要导出的项目,单击下一步。
- 密钥库选择屏幕出现
看起来像这样(原谅我的ascii,文件上传器不工作):
[]使用现有的密钥库
[o]创建新的密钥库
位置:__________ [浏览]
密码:__________
确认:__________
我没有现有的密钥库,所以我点击创建新的密钥库单选按钮。位置字段保持活动状态,必须填充,如果我浏览到某个目录,我希望在创建密钥存储区之后,该对话框会抱怨密钥存储路径是一个目录。
- 实际上可以使用此对话框创建密钥库吗?
- 如果没有,我如何创建一个?到目前为止,我的google-fu只为我提供了失败的实验。我在PC上使用Eclipse。
进行编译和签名似乎认为这只会奏效,但是我无法通过这个对话框的这一部分。我可以导出未签名的.apk文件。
谢谢!
您应该可以使用对话框创建密钥库,是的。导航到要使用的文件夹后,在文件浏览窗口中的文件名:字段中键入名称,例如。 sophie.keystore
。那么你应该可以继续。
或者,您可以在命令行中创建它,如在文档。
命令如下所示:
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
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!
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:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
for example:
keytool -genkey -v -keystore ~/dcaunt.keystore -alias dcaunt -keyalg RSA -keysize 2048 -validity 10000
这篇关于在导出Android应用程序向导中为Android应用程序生成密钥库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!