Android: keytool error on command line while searching for debug.keystore

I am trying to create an MD5 fingerprint from a debug.keystore file using keytool.exe in my JDK in order to use Google Maps in my Android project. I found the keystore file and moved it to C:\android to simplify the task.

Then at the command prompt, type

 c:\Program Files\Java\jdk1.5.0_13\bin>keytool -list -alias androiddebugkey -keystore "C:\android\debug.keystore" -storepass android -keypass android 

And I get the error:

 keytool error: java.lang.Exception: Keystore file does not exist: C:\android\debug.keystore 

I also tried to enter the keystore from my original location, and not go to C:\android , but I still get the same error.

Does anyone know why this is happening? Also, is there any other way to get this MD5 fingerprint? Maybe some kind of program?

+4
source share
8 answers

to create a debug.keystore file

in Eclipse / ADT, go to Windows> Settings> Android> Build

once it is generated, use the ur command (c: \ Program Files \ Java \ jdk1.5.0_13 \ bin> keytool -list -alias androiddebugkey -keystore "C: \ android \ debug.keystore" -storepass android -keypass android) for MD5 generation.

this is used to generate the api key for google map.

+8
source

You must execute keytools from c:\Program Files (x86)\java\jre6\bin>

And here, run the keytool command without "\"

 keytool -list -alias androiddebugkey -keystore C:\Users\<you_user_name>\.android\debug.keystore -storepass android -keypass android 

It will work!

+5
source

You can try adding c:\Program Files\Java\jdk1.5.0_13\bin to your PATH and then run the keytool command from the C:\android directory . This is what I do (more or less - I have JDK6 and another directory) and it works fine.

+3
source

There are times when your .android folder is present in the path C:\Documents and Settings . Often due to spaces in Documents and Settings command will not work correctly.

It is best to create a test folder under C: and place your debug.keystore file in this folder. Then specify the path as:

 keytool -list -alias androiddebugkey -keystore "C:\test\debug.keystore" -storepass android -keypass android 

It works. If someone encounters problems and gets an error in this command, you can try your luck.

+3
source

I had the same message, and when checking the C: \ user.android directory, I could see that the debug.keystore file was missing. Since this was the first time I tried an Android project on this machine, there were no previous versions. I created and launched the ubiquitous Hello World project, and debug.keystore was instantly created. Then I ran keytool and MD5 looked great

+1
source

To generate debug.keystore, you must run any application at least once. Just create and run any Android Hello Hello application to create it.

  • Create an Android Hello World App

  • Launch the Android Hello World App

+1
source
 keytool error: java.lang.Exception: Keystore file does not exist: C:\android\debug.keystore 

Tells me that the file is missing, as you think.

In addition, if you use the Android Eclipse tools, you can export the signed APK file through Eclipse, which may be easier for you than using the command line tools.

0
source

I went to the bin directory first, and then

get where your debug.key is .. only in .android and it worked like a charm

where androiddebugkey is the name you give

 C:\Program Files\Java\jdk1.8.0_66\bin>keytool -exportcert -list -v -alias androiddebugkey -keystore C:\Users\001557\.android\debug.keystore 
0
source

Source: https://habr.com/ru/post/1306951/


All Articles