Linux 如何从命令行生成 android debug.keystore?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5047817/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 02:55:09  来源:igfitidea点击:

How do I generate an android debug.keystore from the command-line?

androidlinuxcommand-lineandroid-emulator

提问by hopia

I'm using a GUI-less linux so I can't use Eclipse to generate one for me.

我使用的是无 GUI 的 linux,所以我不能使用 Eclipse 为我生成一个。

采纳答案by John Leehey

look at Android's documentationfor creating a keystore using keytool. They provide an example command:

查看使用 keytool 创建密钥库的Android文档。他们提供了一个示例命令:

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

Edit: Sorry, I read too quickly. If you want to use a debug keystore from the command line, you need to compile using "ant".

编辑:对不起,我读得太快了。如果要从命令行使用调试密钥库,则需要使用“ant”进行编译。