首先下载个模拟器
我下载是蓝叠
配置环境变量
打开HBuilder的目录HBuilderXpluginslauncher oolsadbs 然后在path里面复制 HBuilderXpluginslauncher oolsadbs 下去
连接模拟器
获取版本
C:UsersLenovo>adb version 1.0.32
Android Debug Bridge version 1.0.32
查看连接设备数
C:UsersLenovo>adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
6cfd9839 device
这个模拟器端口是5555
C:UsersLenovo>adb connect 127.0.0.1:5555
already connected to 127.0.0.1:5555
查看是否连接成功
C:UsersLenovo>adb devices
List of devices attached
6cfd9839 device
emulator-5554 device
**127.0.0.1:5555 device**