非开发者在HarmonyOS上安装hap包
·
HarmonyOS还不能直接下载hap包并在手机上进行安装 ,需要借助hdc去安装。
目前测试发现只能安装Debug包,且只能通过hdc命令进行安装,且只能安装.hap。
这个教程默认你已经添加了签名之类的,已经可以正常打出.hap文件
安装命令 hdc install xxx.hap
获取UDID
hdc.exe shell bm get --udid
或者 hdc.exe shell bm get -u
如果报错:
udid of current device is :
error: failed to get udid
换成命令行
HdcExternal.exe shell bm get --udid
或者 HdcExternal.exe shell bm get -u
更多推荐


所有评论(0)