Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 249
hopia Avatar asked Feb 18 '11 23:02

hopia


People also ask

How do I debug a keystore?

All you need to do is goto command prompt and cd C:\Program Files\Java\jdk-10.0. 2\bin> where jdk-10.0. 2 or full path can be different in your case. once you are in the bin, enter this code keytool -keystore C:\Users\GB\.

Where is the Android debug keystore?

The default location is /Users/<username>/. android/debug. keystore.


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

like image 107
John Leehey Avatar answered Oct 28 '22 21:10

John Leehey