Updated on 2023-12-21 GMT+08:00

Sign Android APK

With the Sign Android APK action, use apksigner to sign the Android APK.

Configuration Description

  1. Add Sign Android APK after Build with Android, when configuring build actions.

    The parameters are described in the following table.

    Parameter

    Description

    Action Name

    Name of a build action. It can be customized.

    APK Location

    Location of the APK file to be signed generated after Android building. Regular expressions are supported. For example, build/bin/*.apk can be used to match the built APK package.

    Keystore File

    Keystore file used for signature, which is generated by referring to Generating Keystore Signature Files. Select a keystore file from the list of files already uploaded after you click Manage Files.

    Keystore Password

    Keystore password.

    Alias

    Alias of the keystore file.

    Key Password

    Password of the key.

    apksigner Command

    Custom signature parameter. The default value is --verbose.

  2. Check whether the signing is successful.

    After the configuration is complete, run the build task. After the task is executed successfully, view the build log. If "result: Signed" is displayed in the Android APK signature log, the signing is successful.