使用HBuildX4.15版本云打包->打正式包->传统打包
- 发布:2024-05-14 15:53
- 更新:2024-05-16 11:58
- 阅读:638
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows 10教育版
HBuilderX类型: 正式
HBuilderX版本号: 4.15
手机系统: Android
手机系统版本号: Android 13
手机厂商: 魅族
手机机型: 17pro
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常打开
正常打开
实际结果:
打开白屏
打开白屏
bug描述:
运行到真机和安卓模拟器都是正常的,就是云打包后的apk安装打开白屏。跟机型没关系,用了几种机型安装打开都是白屏。
下载附件里的文件,覆盖到以下,然后重新打包试试。
HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-app-plus-plugin/index.js
提供下测试包
-
8***@qq.com (作者)
https://haishuyun-test.oss-cn-guangzhou.aliyuncs.com/merchantApp/app-test-84.apk
2024-05-14 16:26
请问解决了吗,我也是遇到了相同的问题
-
8***@qq.com (作者)
暂时没解决,如果着急打包的话,可以安装旧版本的依赖,然后manifest.json设置忽略版本提示https://ask.dcloud.net.cn/m/article/35627。
2024-05-17 10:25
8***@qq.com (作者)
这个方法不行,还是白屏
2024-05-17 10:03
DCloud_UNI_FengXY
回复 8***@qq.com: cli工程的话,替换到你自己工程目录的node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-app-plus-plugin/index.js
2024-05-17 11:10
8***@qq.com (作者)
回复 DCloud_UNI_FengXY: 这个方法可以
2024-05-17 13:33
DCloud_UNI_FengXY
回复 8***@qq.com: 方便的话,可以提交一个仅管理员可见的项目,我们排查下导致该问题的具体原因
2024-05-17 13:39
8***@qq.com (作者)
回复 DCloud_UNI_FengXY: 之前刚回复时可以打包,现在又不行了,只把后端接口正式环境切测试环境,其他代码什么都没改
2024-07-10 14:54
8***@qq.com (作者)
回复 DCloud_UNI_FengXY: 升级到4.23打包也是白屏,帮忙找下原因,感谢
2024-07-10 15:16
DCloud_UNI_FengXY
回复 8***@qq.com: package.json中@dcloudio相关包的版本号发一下
2024-07-13 15:01
1***@qq.com
回复 DCloud_UNI_FengXY: "dependencies": {
"@dcloudio/uni-app": "2.0.2-4010520240507001",
"@dcloudio/uni-app-plus": "2.0.2-4010520240507001",
"@dcloudio/uni-h5": "2.0.2-4010520240507001",
"@dcloudio/uni-i18n": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-360": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-alipay": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-baidu": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-jd": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-kuaishou": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-lark": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-qq": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-toutiao": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-vue": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-weixin": "2.0.2-4010520240507001",
"@dcloudio/uni-mp-xhs": "2.0.2-4010520240507001",
"@dcloudio/uni-quickapp-native": "2.0.2-4010520240507001",
"@dcloudio/uni-quickapp-webview": "2.0.2-4010520240507001",
"@dcloudio/uni-stacktracey": "2.0.2-4010520240507001",
"@dcloudio/uni-stat": "2.0.2-3090920231225001",
"@vue/shared": "3.4.27",
"core-js": "^3.8.3",
"@qiun/ucharts": "^2.5.0-20230101",
"compression-webpack-plugin": "^6.1.1",
"flyio": "0.6.14",
"hacktimer": "^1.1.3",
"html2canvas": "^1.4.1",
"js-base64": "^3.7.2",
"sass": "^1.49.0",
"sass-loader": "^8.0.2",
"vue": ">= 2.6.14 < 2.7",
"vue-i18n": "^8.24.4",
"vuex": "3.6.2",
"webpack": "^5.91.0"
},
"devDependencies": {
"@dcloudio/types": "^3.3.2",
"@dcloudio/uni-automator": "2.0.2-4010520240507001",
"@dcloudio/uni-cli-i18n": "2.0.2-4010520240507001",
"@dcloudio/uni-cli-shared": "2.0.2-4010520240507001",
"@dcloudio/uni-helper-json": "*",
"@dcloudio/uni-migration": "2.0.2-4010520240507001",
"@dcloudio/uni-template-compiler": "2.0.2-4010520240507001",
"@dcloudio/vue-cli-plugin-hbuilderx": "2.0.2-4010520240507001",
"@dcloudio/vue-cli-plugin-uni": "2.0.2-4010520240507001",
"@dcloudio/vue-cli-plugin-uni-optimize": "2.0.2-4010520240507001",
"@dcloudio/webpack-uni-mp-loader": "2.0.2-4010520240507001",
"@dcloudio/webpack-uni-pages-loader": "2.0.2-4010520240507001",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"babel-plugin-import": "1.13.8",
"cross-env": "7.0.3",
"jest": "25.5.4",
"postcss": "^8.4.38",
"postcss-comment": "^2.0.0",
"uni-read-pages": "^1.0.5",
"vue-inset-loader": "^1.2.6",
"vue-template-compiler": ">= 2.6.14 < 2.7",
"webpack-bundle-analyzer": "^4.10.2",
"xgplayer": "^2.30.1",
"xgplayer-hls.js": "^2.5.2"
},
2024-08-17 19:49
1***@qq.com
我刚开始打包也是白屏,替换了index.js重新打包就好用了
2024-08-17 19:50