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

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

时间:2022-11-11 16:08:53浏览次数:77  
标签:default FAQ bundle install error hap 安装 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​

标签:default,FAQ,bundle,install,error,hap,安装,out
From: https://blog.51cto.com/u_14772288/5845082

相关文章