文档开发者中心
我的
|

HarmonyOS 5

打包APP报错

【设备信息】Mate60
【API版本】Api12
【DevEco Studio版本】5.0.3.700
【问题描述】

有没有什么方法能够找到冲突的包名, 打hap 直接run都没有问题 打app的时候报错

> hvigor ERROR: Failed ::PackageApp...
> hvigor ERROR: Tools execution failed.
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Module: (entry) and Module: (entry) have the same moduleName, please check deviceType or distroFilter of the module.
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Module: entry has deviceType [phone, tablet, 2in1].
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Another Module: entry has deviceType [phone, tablet, 2in1].
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Solution: Make sure the module name is valid and unique.
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Reference: FAQ.
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Compressor::compressFile verify failed, check version, apiVersion,moduleName,packageName.
2024/08/22 10:03:45.884 - Ohos BundleTool [Error]: Compressor::compressAppMode compress failed.
2024/08/22 10:03:45.900 - Ohos BundleTool [Error]: Compressor::compressProcess Bundle exception.
2024/08/22 10:03:45.901 - Ohos BundleTool [Error]: Compressor::compressProcess compress failed.
2024/08/22 10:03:45.901 - Ohos BundleTool [Error]: CompressEntrance::main exit, compress failed
Detail: Please check the message from tools.
> hvigor ERROR: BUILD FAILED in 1 min 9 s 57 ms

点赞
收藏
回复
1
分享
举报
浏览173 发布于2025-02-20 03:02广东
全部评论
最多点赞
最新发布
最早发布
|
技术支持
1楼编辑于2025-07-15 07:18 来自广东
写回答
新增插入模板功能
一键使用模板,快速填写内容,轻松发帖~
知道了
  • 为了保障您的信息安全,请勿上传您的敏感个人信息(如您的密码等信息)和您的敏感资产信息(如关键源代码、签名私钥、调试安装包、业务日志等信息),且您需自行承担由此产生的信息泄露等安全风险。
  • 如您发布的内容为转载内容,请注明内容来源。

我要提问题

了解社区公约,与您携手共创和谐专业的开发者社区。