已经签名好,配置好报名,点击运行到鸿蒙平台就出现了这个问题,猜测可能是之前使用的4.29版本,因为我找不到包名在哪里配置得和deveco中一样的,就升级为4.32版本了。
![b***@163.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/0d3d9bb770fda7193aec409dbeb82f35.png)
- 发布:2024-11-20 13:33
- 更新:2024-11-22 13:55
- 阅读:132
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 11
HBuilderX类型: Alpha
HBuilderX版本号: 4.32
手机系统: HarmonyOS NEXT
手机系统版本号: HarmonyOS NEXT Developer Beta2
手机厂商: 华为
手机机型: Pura70 pro
页面类型: vue
vue版本: vue3
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常安装到真机
正常安装到真机
实际结果:
安装hap失败
安装hap失败
bug描述:
警告有几百条;
第一个警告没看懂是为什么 hvigor WARN: The current module 'app-harmony-2f573459' has dependency which is not installed at its oh-package.json5.
报错如下:
1 ERROR: ArkTS:ERROR File: //?/C:/Users/a1396/Documents/HBuilderProjects/uni-app-sync/sync_version1/unpackage/debug/app-harmony-2f573459/oh_modules/.ohpm/@ohos+videocompressor@soegz02lhnnihit14ad03wcy4dhlg8y+cdslhkqxb5s=/oh_modules/@ohos/videocompressor/src/main/ets/components/mainpage/VideoCompressor.ets
A page configured in 'main_pages.json or build-profile.json5' must have one and only one '@Entry' decorator.
Try the following:
Please make sure that the splash page has one and only one '@Entry' decorator.
2 ERROR: ArkTS:ERROR File: //?/C:/Users/a1396/Documents/HBuilderProjects/uni-app-sync/sync_version1/unpackage/debug/app-harmony-2f573459/oh_modules/.ohpm/@ohos+videocompressor@soegz02lhnnihit14ad03wcy4dhlg8y+cdslhkqxb5s=/oh_modules/@ohos/videocompressor/src/main/ets/components/mainpage/CompressorResponse.ets
A page configured in 'main_pages.json or build-profile.json5' must have one and only one '@Entry' decorator.
Try the following:
Please make sure that the splash page has one and only one '@Entry' decorator.
COMPILE RESULT:FAIL {ERROR:3 WARN:523}
hvigor ERROR: BUILD FAILED in 16 s 444 ms
谢谢大神解答,我实在是在网上找不到解决办法就来论坛救助了
1 个回复
DCloud_云服务_MAQ
最好能提供一个可以复现错误的项目源代码,以便排查。