The SolutionChange the directory and file access permission to allow you to access the file. If change access permission does not solve the problem, launch the Command Prompt as an administrator. Right click on Command Prompt and select “Run as administer”.
Add the keytool folder to your system PATH (on Windows) In order to run keytool from the command line, you need to add it to your system PATH. This step is required on Windows only, as keytool will is automatically installed on /usr/bin on macOS/Linux.
Check that the directory the keytool executable is in is on your %PATH%
environment variable.
For example, on my Windows 7 machine, it is in
C:\Program Files (x86)\Java\jre6\bin
, and my %PATH%
variable looks like C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Java\jre6\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
(and many other entries)
This worked for me !! :
Go to this path or where ever you have your keytool.exe file
C:\Program Files\Java\jre7\bin
Hold shift
and right click -> then press Open command window here
terminal will pop up, paste this in:
keytool -list -v -keystore "C:\Users\"Your-User-Name(no quotes)"\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
gives you both MD5 and SHA1
Found it.
GO TO:
my computer->rightClick->properties->Advanced system settings->environment variables->find path in system variables->dbl click-> paste the "C:\Program Files\Java\jdk1.6.0_16\bin"->OK
GO TO:
cmd -> keytool -list -alias androiddebugkey -keystore "C:\Users\meee\.android\debug.keystore" -storepass android -keypass android
Go to My computer -> right click -> system properties -> environmental variables -> Path -> add you jdk/bin to this path
C:\Program Files\Java\jdk1.8.0_211\bin
*if this not work then
In cmd set the path by using the below command
set PATH=C:\Program Files\Java\jdk1.8.0_211\bin
now the path is set now you can use the keytool
So if you have the following structure now:
C:\Program Files\Java\jre6\bin\
keytool.exe
debug.keystore
then execute:
C:\Program Files\Java\jre6\bin>keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
On windows 8, go to C:\Program Files\Java\jre7\bin and in the address bar, type "cmd" without the quotes. This will launch the terminal. Then type in string as describe here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With