uniapp offline packaging specific steps

This article remembers the steps about uniapp offline packaging, I hope it will be helpful to everyone.

Need to prepare:

1、HBuilder X

2. Android Studio (download address: Android Studio official website  OR  Android Studio Chinese community )

3. App offline SDK download: download the latest android platform SDK

One: Unzip and open the downloaded App offline SDK, find the HBuilder-Integrate-AS folder, and open it in Android Studio

 

 Two: Find the files under src/main/assets/apps in the directory

 Generate local packaging resources in HBuilder X

 

 Then replace the generated resources with the files under the apps in the second step

 Three: Make appid changes

Find the src/assets/dada/dcloud_control.xml file, open it and fill in the appid

 If you don't know what appid is, you can open mainfest.json in Hbuilder to find the source code view,

 Four: Find the AndroidManifest.xml file, fill in the package and offline secret key

 Both package and offline key can be found in

Found in the developer center,

 

 find this

 Just copy the package name and fill it in.

Then fill in the offline key to find this

 Find the offline packaging key in the developer center just now and fill it in.

Five: Fill in the cloud certificate information

 First put the cloud certificate in the root directory, find the cloud certificate in the developer center and download it (apply first if you don’t have one)

 After downloading, put it into the project

 Then find the build.gradle folder and fill in the applicationId

 Then find out that the keyAlias ​​is appid, keyPassword and storePassword are filled with the certificate password, and storeFile file is filled with the name of the certificate placed in the root directory in the previous step

 The certificate password can be viewed in the developer center, certificate details.

Six: Package and download

 ok

Guess you like

Origin blog.csdn.net/weixin_44414901/article/details/128417455