Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
982 views
in Technique[技术] by (71.8m points)

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

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 FilesJavajdk1.5.0_13in>keytool -list -alias androiddebugkey -keystore "C:androiddebug.keystore" -storepass android -keypass android

And I keep getting the error:

keytool error: java.lang.Exception: Keystore file does not exist: C:androiddebug.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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

to generate debug.keystore file

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

once it is generated use ur command(c:Program FilesJavajdk1.5.0_13in>keytool -list -alias androiddebugkey -keystore "C:androiddebug.keystore" -storepass android -keypass android) to generate MD5.

this is used to generate api key for google map.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...