b***@163.com
b***@163.com
  • 发布:2024-11-20 13:18
  • 更新:2024-11-22 13:47
  • 阅读:143

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

分类:鸿蒙Next

警告有几百条;
第一个警告没看懂是为什么 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:18 负责人:无 分享
已邀请:
DCloud_云服务_MAQ

DCloud_云服务_MAQ

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

要回复问题请先登录注册