Home » Android » linux – How do I generate an android debug.keystore from the command-line?

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

Posted by: admin June 15, 2020 Leave a comment

Questions:

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

How to&Answers:

look at Android’s documentation for creating a keystore using keytool. They provide an example command:

$ 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”.