1. Login to https://developer.android.com/
  2. In the menu bar, click Build > Generate Signed APK.
  3. Select the module you would like to release from the drop down, and click Next.
  4. If you already have a keystore, go to step 5. If you want to create a new keystore, click Create new.

  5. On the New Key Store window, provide the following information for your keystore and key.

    Keystore

    • Key store path: Select the location where your keystore should be created.
    • Password: Create and confirm a secure password for your keystore.

    Key

    • Alias: Enter an identifying name for your key.
    • Password: Create and confirm a secure password for your key.
    • Validity : Set the length of time in years that your key will be valid.
    • Certificate: Enter some information about yourself for your certificate.
  6. On the Generate Signed APK Wizard window, select a keystore, a private key, and enter the passwords for both. Then click Next.

  7. Select a destination for the signed APK, select the build type, choose the product flavor, and click Finish.

Configure the build process to automatically sign your APK

  1. In the Project window, right click on your app and click Open Module Settings.
  2. On the Project Structure window, under Modules in the left panel, click the module you would like to sign.
  3. Click the Signing tab, then click Add .
  4. Select your keystore file, enter a name for this signing configuration and enter the required information.

  5. Click the Build Types tab.
  6. Click the release build.
  7. Under Signing Config, select the signing configuration you just created.

  8. Click OK.

Leave a Reply

Your email address will not be published. Required fields are marked *