Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you install the keystore in flutter?

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).

like image 786
tkha2727 Avatar asked Dec 05 '25 04:12

tkha2727


1 Answers

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

like image 193
Shri Hari Avatar answered Dec 07 '25 19:12

Shri Hari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!