一,先在HBuilderX中执行操作:发行-本地打包-生成,会生成本地打包文件D:\Program Files\hbuilderz\HBuilder-Integrate-AS\simpleDemo\src\main\assets\apps目录下__UNI__DA8164E。
二,在android studio中修改配置项
- 修改D:\Program Files\hbuilderz\HBuilder-Integrate-AS\simpleDemo\src\main\AndroidManifest.xml文件
![图片[1]-UniApp开发离线打包-素码网](https://www.daosea.com/wp-content/uploads/2022/05/165184503111.png)
- 修改D:\Program Files\hbuilderz\HBuilder-Integrate-AS\simpleDemo\build.gradle文件
![图片[2]-UniApp开发离线打包-素码网](https://www.daosea.com/wp-content/uploads/2022/05/16518455441.png)
- 修改D:\Program Files\hbuilderz\HBuilder-Integrate-AS\simpleDemo\src\main\assets\data\dcloud_control.xml文件
![图片[3]-UniApp开发离线打包-素码网](https://www.daosea.com/wp-content/uploads/2022/05/16518456761.png)
- 其中,123步配置信息都是在开发者中心生成离线打包key
![图片[4]-UniApp开发离线打包-素码网](https://www.daosea.com/wp-content/uploads/2022/05/16518458671.png)
三,执行build-build APK打包生成打包文件D:\Program Files\hbuilderz\HBuilder-Integrate-AS\simpleDemo\build\outputs\apk\debug文件下.apk文件
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END






暂无评论内容