Programmers learn & share
0 votes
769 views

Problem :

I am facing following keytool error
'keytool' is not recognized as an internal or external command, operable program or batch file.
by (6.9k points)   | 769 views

2 Answers

0 votes

Solution :

Below solution worked for me !! :

You need to go to the path where you have your keytool.exe file

e.g C:\Program Files\Java\jre7\bin

Now hold shift and right click -> then press Open command window here

After that terminal will pop up paste below command in:

keytool -list -v -keystore "C:\Users\"Your-User-Name(no quotes)"\.android\debug.keystore" -alias androiddebugkey -storepass andr
by (36.1k points)  
0 votes
A simple solution of error is that you first need to change the folder directory in command prompt. By default in command prompt or in terminal(Inside Android studio in the bottom)tab
the path is set to
C:\Users\#Name of your PC that you selected\AndroidStudioProjects\#app name\flutter_app>
**Change accordingly:-**
C:\Users\#Name of your PC that you selected\AndroidStudioProjects\#app name\flutter_app>cd\
# type **cd\** (#after flutter_app>), type only cd\ not comma's
#then type cd **Program Files\Java\jre1.8.0_251\bin** (#remember to check the file name of jre properly)
#now type **keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android** (without anyspace type the command).
by  
2,227 questions
2,734 answers
59 comments
241 users