uniapp offline packaging
- andiord offline packaging development tools and required jar packages based on uni-app
-
- 1. Unzip and open the downloaded App offline SDK, find HBuilder-Integrate-AS, and open it in Android Studio
- 2. Open HBuilder X, publish->native app local packaging->generate local packaged app resources
- 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
- 4. Modify app name
- 5. [Apply for offline packaging key](https://dev.dcloud.net.cn/app)
- 6. Configure the package name, version number and appID
- 7. Package and download apk
- 8.[Offline packaging documentation](https://nativesupport.dcloud.net.cn/AppDocs/usesdk/android.html)
andiord offline packaging development tools and required jar packages based on uni-app
- Download Android Studio version preferably 4.0 or above
- Download HBuilder X
- 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
:
1. Unzip and open the downloaded App offline SDK, find HBuilder-Integrate-AS, and open it in Android Studio
2. Open HBuilder X, publish->native app local packaging->generate local packaged app resources
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
4. Modify app name
5. Apply for offline packaging key
6. Configure the package name, version number and appID
7. Package and download apk
After completing the above steps, find Build in the toolbar and select Generate Signed Bundle/APK…
- 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
- After packaging is completed, the generated apk installation package will be in the HBuilder-Integrate-AS\simpleDemo\release directory