Android App generates a signature certificate, and uniapp generates its own certificate for packaging

The uniapp Android package generates its own certificate and signature. Starting from HBuilderX3.2.0 and above, it supports server-generated certificates (this method is recommended), and the server generates one-click operation, which is relatively simple. It is relatively troublesome to operate step by step by yourself.

Server generated certificate (recommended)

  • The certificate generated by the server is bound to the application appid, that is, each appid will generate its own certificate

  • The certificate generated by the server will automatically fill in the certificate information, does not support custom certificate information, and is valid for 100 years

  • To view or download the certificate generated by the server, log in to the DCloud Developer Center

    1. Log in to the developer background
    2. Click Application Management > My Application, find your project,
      Click Application Management > My Applications. Select your project
      enter the details of the project, click 证书管理, click 创建证书, and wait for the certificate file to be generated
      insert image description here
    3. On the App packaging page, select 使用云端证书and click Package.
      insert image description here
      It is much simpler than generating a certificate yourself.
    4. If you want 查看证书, you can check it in the developer background
      insert image description here

Manually generate the Android platform signing certificate (.keystore)

The official document tutorial is released here , and the steps are explained here

  1. The first step
    insert image description here
    is to select the recommended version to download Android, and you need to download it here 注册登录before you can download it.
    insert image description here
    After the download and installation is complete, press win+r to open the command window, then enter to cmdenter the black window, enter the following command
d:  
set PATH=%PATH%;"这里要改为你刚才安装的目录"

Which d: means switching to the d drive directory

  1. Attention should be paid to this step of generating a signature certificate
    insert image description here
    : fill in the information in a standardized manner, and random filling may affect the app's listing on the app market.

  2. Get the signature
    Download the signature tool
    insert image description here
    After the download and installation is complete, you can enter the package name in the software and it will be generated. The premise is that your software has been installed on the phone! !

At this point, the operation of manually generating a certificate and obtaining a signature is completed. The first method is recommended, which is more convenient and quick.
Thanks for the preview, this article is over!

Guess you like

Origin blog.csdn.net/qq_38188228/article/details/127124633