当前位置:   article > 正文

【HarmonyOS NEXT】构建Hap包后,安装失败_failed to install the hap or hsp because the depen

failed to install the hap or hsp because the dependent module does not exist

【关键字】

构建 / HAP包 / HSP包

【问题描述】

用DevEco Studio构建的HAP包,在安装时会提示:

“queuesize:0, msg:error: failed to install bundle. code:9568305 error: dependent module does not exist. ”

经排查是未包含其所依赖的module导致的,请问这种多module的情况下,通过DevEco Studio的“Build > Build Hap(s)/App(s) > Build Hap(s) ”构建出来完整的HAP包发给测试人员。通过命令行安装到测试设备上,而不是通过IDE直接在手机上运行,请问应该如何通过“Build > Build Hap(s)/App(s) > Build Hap(s)”构建出来完整的HAP包?

【解决方案】

多module结构是一个HAP包依赖多个HSP包,需要先通过命令行将依赖的HSP包安装到机器上,再安装HHAP包。

更多模块调试详情参考开发指南链接:

https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-run-debug-configurations-0000001760344518#section393005432811

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/985390
推荐阅读
相关标签
  

闽ICP备14008679号