Android: keytool error on the command line when lo

2020-02-06 03:06发布

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 located the keystore file and have moved it into C:\android just to make things easier.

Then in a command prompt I 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 keep getting the error:

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

I've also tried entering the keystore in from its original location rather than moving to c:\android but I still get the same error.

Does anyone have any idea why this is happening? Also, is there any other way to get this MD5 fingerprint? Some program maybe?

8条回答
Evening l夕情丶
2楼-- · 2020-02-06 04:07

First i wentto the bin directory and then

get where your debug.key is ..mainly at the .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
查看更多
成全新的幸福
3楼-- · 2020-02-06 04:08

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

查看更多
登录 后发表回答