Android Studio apk package, keystore.jks file generation, obtain a security code based on SHA1 key keystore

keystore.jks file is generated, packed APK
select Build> Generate Signed APK bomb box appears as follows:

 

 

 

Then click Create new ... (meaning created) appeared another bomb box, do the following, as

 

After completing the information, click OK

 

 

Can see some information to fill in the front, you can check remember your password, click Next

 

 

after that

 

 

 

After clicking Finish, wait a little while to pack Apk successful, the figure is Apk APK Folder path, the default is the project root directory.

 

 

According keystore get SHA1 key security codes
usually do most of the projects should be used SHA1 security codes, such as: map, get SHA1 security code, there are two, divided debug and release version, they are not the same SHA1 ,

debug Beta:

Window + R to open the console, type cmd and click OK

 

 

After the completion of the following in the bomb box, you can see the security code SHA1

 

 

The key store password on the map by default is: android (Note: The password is invisible, Enter to complete the input)

release release:

This version requires us keystore.jks front generated files, directories keystore.jks first find, and then packaged in the AS project, click on the bottom of the console Terminal  

 

 

Appeared console, you can fill out the appropriate information, as shown:

 

 The figure of the key store password is the password you entered when you create keystore.jks files (Note: password is invisible, Enter to complete the input)

Guess you like

Origin www.cnblogs.com/blogger-Li/p/11620798.html