uniapp offline packaging apk - Android Studio

andiord offline packaging development tools and required jar packages based on uni-app

  1. ​Download Android Studio version preferably 4.0 or above
  2. ​Download HBuilder X
  3. Download Android offline SDK

Note: HBuilder X and offline SDK versions must be consistent (my version is 3.6.2)

Directory after decompression of Android SDK
:Insert image description here

1. Unzip and open the downloaded App offline SDK, find HBuilder-Integrate-AS, and open it in Android Studio

Insert image description here

2. Open HBuilder X, publish->native app local packaging->generate local packaged app resources

Insert image description here
Insert image description here

3. Find the files under simpleDemo/src/main/assets/apps in the "HBuilder-Integrate-AS" directory, delete the original app resources in this path, and copy the newly packaged local packaged app resources to apps under folder

Insert image description here

4. Modify app name

Insert image description here

5. Apply for offline packaging key

Insert image description here
Insert image description here

6. Configure the package name, version number and appID

Insert image description here

Insert image description here
Insert image description here

7. Package and download apk

After completing the above steps, find Build in the toolbar and select Generate Signed Bundle/APK…
Insert image description here
Insert image description here

  1. Enter the password ****** in key store password and key password (the two passwords are the same), enter the password and click Next, select release and click Finish
  2. After packaging is completed, the generated apk installation package will be in the HBuilder-Integrate-AS\simpleDemo\release directory
    Insert image description here

8. Offline packaging documents

Guess you like

Origin blog.csdn.net/weixin_45990765/article/details/129366519