Missing keytool for asigning apk (Solved)

Hello Goodfolks.
I am trying to sign my unasigned apk with:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

But everytime i throw a command like this, i keep getting this response:

‘keytool’ is not recognized as an internal or external command,
operable program or batch file.

So i was wondering if a friendly person, might had an idea how i could fix my keytool. Thanks in advance =)

Install or reinstall JAVA on your computer.

Thanks Chris, but I’ve already done that yesterday, to have the required version to complete the build.

Make sure that your java_home is setted.

Thanks for your reply buddy, it a Java error by my own hand so to say, i had to direct the terminal into the correct directory =)

1 Like