Harmony hap 调试命令

1、hdc

使用hdc工具进行调试,使用前先安装SDK,配置环境变量,hdc路径:Sdk\openharmony\9\toolchains

2、直接使用hdc安装、更新HAP

/ 安装、更新,多HAP可以指定多个文件路径
hdc install C:\entry.hap C:\feature.hap
// 执行结果
install bundle successfully.
// 卸载
hdc uninstall com.example.myapplication
// 执行结果
uninstall bundle successfully.

3、先执行hdc shell,再使用bm工具安装、更新HAP

// 先执行hdc shell才能使用bm工具
hdc shell
// 安装、更新,多HAP可以指定多个文件路径
bm install -p /data/app/entry.hap /data/app/feature.hap
// 执行结果
install bundle successfully.
// 卸载
bm uninstall -n com.example.myapplication
// 执行结果
uninstall bundle successfully.

猜你喜欢

转载自blog.csdn.net/xiaopihair123/article/details/134033178