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
- Log in to the developer background
- Click Application Management > My Application, find your project,
enter the details of the project, click证书管理
, click创建证书
, and wait for the certificate file to be generated
- On the App packaging page, select
使用云端证书
and click Package.
It is much simpler than generating a certificate yourself. - If you want
查看证书
, you can check it in the developer background
Manually generate the Android platform signing certificate (.keystore)
The official document tutorial is released here , and the steps are explained here
- The first step
is to select the recommended version to download Android, and you need to download it here注册登录
before you can download it.
After the download and installation is complete, press win+r to open the command window, then enter tocmd
enter the black window, enter the following command
d:
set PATH=%PATH%;"这里要改为你刚才安装的目录"
Which d:
means switching to the d drive directory
-
Attention should be paid to this step of generating a signature certificate
: fill in the information in a standardized manner, and random filling may affect the app's listing on the app market. -
Get the signature
Download the signature tool
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!