How to generate key-store

There are two ways to create a key-store

1. Use the CMD command line to generate

2. Generated using Android Studio

Use the CMD command line to generate

1. Enter the CMD command line in the bin folder under the JDK directory

 2. Enter the keytool command line in the command line

 keytool -genkey -alias sign.keystore -keyalg RSA -validity 10000 -keystore sign.keystore

 3, and follow the command line prompts to enter

 4. After the input is completed, the corresponding store file will be generated

Generated using Android Studio

1. Open the Generate Signed Bundle/APK menu item in the build option in the project

2. Select the APK option and click the "Next" button

3. Select the "Create new" button 

 

4. Fill in the relevant information in this pop-up window, and finally click OK

 

The above information is in order:

  • 1. Signature file generation address
  • 2. File password: Confirm password
  • 3.key name
  • 4.key password: key confirmation password

 

This part should be consistent with the content entered in the command line above. 

Guess you like

Origin blog.csdn.net/HaveFun_Wine/article/details/126996119