b***@163.com
b***@163.com
  • 发布:2024-11-20 13:33
  • 更新:2024-11-22 13:55
  • 阅读:132

【报Bug】想问一下鸿蒙运行到真机调试的时候 安装hap失败 这个问题应该怎么解决

分类:鸿蒙Next

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11

HBuilderX类型: Alpha

HBuilderX版本号: 4.32

手机系统: HarmonyOS NEXT

手机系统版本号: HarmonyOS NEXT Developer Beta2

手机厂商: 华为

手机机型: Pura70 pro

页面类型: vue

vue版本: vue3

打包方式: 离线

项目创建方式: HBuilderX

操作步骤:

已经签名好,配置好报名,点击运行到鸿蒙平台就出现了这个问题,猜测可能是之前使用的4.29版本,因为我找不到包名在哪里配置得和deveco中一样的,就升级为4.32版本了。

预期结果:

正常安装到真机

实际结果:

安装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

谢谢大神解答,我实在是在网上找不到解决办法就来论坛救助了

2024-11-20 13:33 负责人:无 分享
已邀请:
DCloud_云服务_MAQ

DCloud_云服务_MAQ

最好能提供一个可以复现错误的项目源代码,以便排查。

要回复问题请先登录注册