Error in Keytool Command

Hi, when I try to run this command bin / keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

i got java.lang.Exception error Keystore file does not exist: debug.keyStore actually i am trying to get googlemaps key for android never used keytool command.

can anyone help remove this error?

+3
source share
3 answers

The problem is that keytool does not know where to look for the keystore file. If you are using Windows 7 / Vista, try:

keytool -list -alias androiddebugkey -keystore c:\users\your-user-name\.android\debug.keystore -storepass android -keypass android
(replace your username with your actual username)

In Windows XP, try:

keytool -list -alias androiddebugkey -keystore c:\documents and settings\your-user-name\.android\debug.keystore -storepass android -keypass android

+5
source

V2- SHA- . .

   C:\Program Files\Java\jdk1.6.0_20\bin>keytool.exe -list -v -alias androiddebugkey -keystore C:\Users\DON\.android\debug.keystore -storepass android -keypass android 
  Don is  usersystem name

, .

   eclipse->Window ->Preferences ->Android ->Build -> now you get the sha key
+2

Finally, I will solve the problem, and the script / Command will work correctly below: Pay attention to the double quotes where they are placed, please use, since this is the correct method. and outside the course, please change the username, and for different versions of windows you will have to change it accordingly. Please feel free to ask if you have any questions.

C:\Program Files\Java\jdk1.6.0_25\bin>keytool -list -alias androiddebugkey -keys
tore "c:\documents and settings\user\.android\debug.keystore" -storepass android
 -keypass android
+1
source

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


All Articles