【HarmonyOS】【FAQ】使用hdc命令安装hap包时,出现以下错误: failed to install bundle. error: operation time out.

【问题描述】
hap包大小为121M,使用hdc命令安装时,出现以下错误提示:[Info]App install path:D:\OpenHarmony\WorkSpace\map\entry\build\default\outputs\default\entry-default-signed.hap, queuesize:0, msg:error: failed to install bundle. error: operation time out.

 

【解决方案】
使用bm命令安装应用时,默认超时时间为5s,如果超过这个时间,bm会返回安装超时,可以通过-w参数将超时时间延长,参考下面wiki,安装命令章节 https://gitee.com/openharmony/bundlemanager_bundle_framework#安装命令

 

欲了解更多更全技术文章,欢迎访问https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh

posted @ 2022-11-11 15:45  华为开发者论坛  阅读(510)  评论(0)    收藏  举报