hdc 如何连接simulater

看hdc的help文档,需要指定connectkey,这个connectkey怎么获取?


hdc 如何连接simulater-鸿蒙开发者社区



hdc
2023-06-19 12:32:33
浏览
已于2023-6-19 12:35:01修改
1
收藏 0
回答 3
回答 3
按赞同
/
按时间
zhushangyuan_
2

simulator可以自己通过命令连接吗?

分享
微博
QQ
微信
回复
2023-06-19 12:35:18
zhushangyuan_
1

所以,对于HarmonyOS Simulator,不要使用OpenHarmony下面的hdc,而要使用HarmonyOS SDK hmscore下面的hdc。

C:\Users\zhushangyuan>where hdc
D:\installed-software\huawei-sdk\openharmony\9\toolchains\hdc.exe

C:\Users\zhushangyuan>hdc list targets
[Empty]

C:\Users\zhushangyuan>

C:\Users\zhushangyuan>cd /d D:\installed-software\huawei-sdk\hmscore\3.1.0\toolchains

D:\installed-software\huawei-sdk\hmscore\3.1.0\toolchains>hdc.exe list targets
emulator-5554   device


D:\installed-software\huawei-sdk\hmscore\3.1.0\toolchains>hdc.exe shell
ERR:ohsh para too less!

D:\installed-software\huawei-sdk\hmscore\3.1.0\toolchains>hdc.exe shell -l
execvp -l fail! err:2 No such file or directory

D:\installed-software\huawei-sdk\hmscore\3.1.0\toolchains>hdc.exe shell --help
execvp --help fail! err:2 No such file or directory

D:\installed-software\huawei-sdk\hmscore\3.1.0\toolchains>
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.


分享
微博
QQ
微信
回复
2023-07-26 20:40:55
zhushangyuan_
1
分享
微博
QQ
微信
回复
2023-07-26 21:07:29


相关问题
如何解决hdc无法连接真机的问题
5771浏览 • 1回复 待解决
如何通过HDC命令获取imei号
3651浏览 • 0回复 待解决
如何通过HDC获取界面访问堆栈?
1097浏览 • 1回复 待解决
HarmonyOS 如何使用hdc命令查看日志?
2817浏览 • 2回复 待解决
HarmonyOS hdc如何复制文本传入手机
786浏览 • 1回复 待解决
如何使用hdc shell aa start的参数
1540浏览 • 1回复 待解决
怎么去掉 hdc uninstall
874浏览 • 1回复 待解决
HarmonyOS hdc无法使用
777浏览 • 1回复 待解决
HarmonyOS hdc命令咨询
985浏览 • 1回复 待解决
HarmonyOS hdc工具如何设置屏幕不锁屏
518浏览 • 1回复 待解决
如何在多设备情况下使用hdc
1406浏览 • 2回复 待解决
HarmonyOS hdc安装hap出错
459浏览 • 1回复 待解决
HarmonyOS hdc 安装 hap 失败
829浏览 • 1回复 待解决
hdc list targets 返回 empty
6890浏览 • 1回复 待解决
如何使用ssl连接到PolarDB ?
3580浏览 • 1回复 待解决
如何查看使用MongoDB的连接
4588浏览 • 1回复 待解决