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
598 views
in Technique[技术] by (71.8m points)

I cant use any keytool command

The command I used is this

keytool -exportcert -alias androiddebugkey -keystore "C:UsersuserName.androiddebug.keystore" -list -v

and it gives this error

keytool : The term 'keytool' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path 
was included, verify that the path is correct and try again.
At line:1 char:1
+ keytool -exportcert -alias androiddebugkey -keystore "C:UsersuserNa ...
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (keytool:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
question from:https://stackoverflow.com/questions/65918344/i-cant-use-any-keytool-command

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

1 Answer

0 votes
by (71.8m points)
  1. Check JDK is configured properly in system or not

  2. If Java is configured properly, check Andriod SDK is installed properly or not

  3. If Android SDK is installed, then run below command in Command Prompt,

keytool -list -keystore %USERPROFILE%.androiddebug.keystore

This is a debug certificate that we can use in FireBase.


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

...