Search code examples
androidkeytoolsigningandroid-keystore

keytool is not recognized as an internal/external command, operable program or batch file


When i use a command keytool -genkey -v -keystore MY-RELEASE-KEY.keystore -alias MY_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000

I get error like this 'keytool' is not recognized as an internal or external command, operable program or batch file. What can i do?


Solution

  • you need to navigate to C:\Program Files\Java\jdk_version\bin and execute the request there