I tried to install Keystore in flutter so, inside the terminal, I wrote:
(keytool -genkey -v -keystore c:\Users\USER_NAME\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key)
However, it said:
'key tool' is not recognized as an internal or external command, operable program, or batch file.
And it doesn't work. How can I fix it? Is there something I should add in the Environment variables? (I'm using Windows 10).
Let me say you a quick solution! Better open the command prompt. Go to the folder where you have installed Java. Eg: In my case, it is C:\Program Files\Java\jre1.8.0_211\bin Command Looks like this
cd "C:\Program Files\Java\jre1.8.0_211\bin"
Now try to execute your previous key tool command.
If it works so, add the above path to your Environment Variables.
Further Reference: https://flutter.dev/docs/deployment/android#signing-the-app
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