Android debug key?

An attempt to create a debug key for using Maps.

I tried this command

keytool -list -alias androiddebugkey \ -keystore ~/.android/debug.keystore.keystore \ -storepass android -keypass android 

But I get this output:

 keytool error: java.lang.Exception: Keystore file does not exist: /Users/chance 1/.android/debug.keystore.keystore 

How to find and generate? Any help was appreciated.

+4
source share
4 answers

Your command is a bit wrong, the correct command is:

 keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android 

(This is for Linux / Mac - enter into the console, it will print the SHA1 certificate fingerprint)

+3
source

Here's a great tutorial on creating a Maps API key. https://developers.google.com/maps/documentation/android/v1/mapkey

But it seems to me that the space in your username will not be escaped. Try typing keytool -list -alias androiddebugkey \ -keystore /Users/chance\ 1/.android/debug.keystore.keystore \ -storepass android -keypass android

0
source

I use XP, so I went to the appropriate directory by opening a command prompt and typing: cd C: \ Documents and Settings \ HP_Administrator.android

Once you have reached the correct directory for your os, enter this in ... keytool -list -alias androiddebugkey -storepass android -keypass android -key store debug.keystore

As soon as you press the enter key, you will see something like this (the actual MD5 that interests us is the last line): androiddebugkey, March 10, 2009, PrivateKeyEntry, Certificate fingerprint (MD5): D1: 16: 4A: BD : 73: 73: A4: 56: 9D: CD: 9A: 44: A2: 6C: 11: AC

0
source

My team in cmd ...

 D:\Java_Install\jdk1.8.0_121\bin\keytool.exe -list -v -keystore "D:\UnityProjects\UnityMobileGameCreator\myapkkeystore.keystore" -storepass YOUR_KEY_STORE_PASS -keypass YOUR_KEY_PASS 

Unity has two password fields in the publication settings, using these passwords in the text above, NOTICE "Keystore and Key" when publishing settings in the "Player" dialogs in unity

Replace the path to the keystore, enter the keystore password, key password, then paste the text in cmd and run, you will return the data of your keystore in the cmd window.

0
source

All Articles