Android: keytool error on the command line when locating debug.keystore

前端 未结 8 1005
渐次进展
渐次进展 2020-12-10 19:30

I\'m trying to generate the MD5 fingerprint from the debug.keystore file using keytool.exe in my JDK so I can use Google Maps in my Android project. I\'ve locat

相关标签:
8条回答
  • 2020-12-10 19:39

    to generate debug.keystore file

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

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

    this is used to generate api key for google map.

    0 讨论(0)
  • 2020-12-10 19:45
    keytool error: java.lang.Exception: Keystore file does not exist: C:\android\debug.keystore
    

    Tells me that file isn't there like you think it is.

    Also, if you are using the Eclipse Android tools, you can export a signed APK file via Eclipse, which might be easier for you than using the command line tools.

    0 讨论(0)
  • 2020-12-10 19:54

    You might try adding c:\Program Files\Java\jdk1.5.0_13\bin to your PATH, then running the keytool command from the C:\android directory. That's what I do (more or less -- I have JDK6 and a different directory), and it works fine.

    0 讨论(0)
  • 2020-12-10 19:57

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

    And here execute the keytool command without "\"

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

    It will work!

    0 讨论(0)
  • 2020-12-10 19:58

    I had the same message and when checking the C:\user.android directory could see that the debug.keystore file was not present. As this was the first time I'd tried an android project on this machine, there had been no previous builds. I created and ran the ubiquitous 'Hello World' project and debug.keystore was instantly created. I then ran keytool and the MD5 appeared fine

    0 讨论(0)
  • 2020-12-10 20:00

    To generate the debug.keystore, you have to run any app at least one time. Just create and run any simple "Hello World" android app to generate it.

    1. Create Hello World android App

    2. Run Hello World android app

    0 讨论(0)
提交回复
热议问题