(1) Android Studio menu Build->generate signed APK
(2) Pop-up window
(3) Create KeyStore and key, automatically select the KeyStore and key you just created after creation (already has keystore skipped)
Click on the "Create New ..." button to create the KeyStore
Key Store Path: The address of the KeyStore file
Password/confirm: Password for KeyStore
Key:
Alias: Key Name
Password/confirm: Key Password
Validity (years): Key validity time
First and last name: Key issuer Name
Organizational Unit: Key-issuing organization
City or Locality: cities
Country Code (XX): Country
(4) Select the existing KeyStore and key (skip this step after creating the KeyStore in (3))
Click the "Choose existing ..." button to locate the KeyStore file
Key Store password Enter the password for the selected KeyStore file
Click the "..." button after the key alias to select or create a key
(5) Click "Next" button, select Save Path, click "Finish" button to complete
Original link:
http://chenfeicqq.iteye.com/blog/1889160
How Android Studio publishes APK