HBuilderX connection simulator

1. Open MuMu emulator

2. HBuilderX->【Run】->【Run to mobile phone or emulator】->【Run to Andriod App base】

提示:没有检测到设备,请插入设备后点击刷新再试

3. Find the adb directory in HBuilder

D:\LenovoQMDownload\SoftMgr\HBuilder X\plugins\launcher\tools\adbs
Configure environment variables: [Advanced System Settings] - [Advanced] - [Environment Variables]

4. Check the version of adb

C:\Users\st>adb version
Android Debug Bridge version 1.0.32

7. View connected devices

C:\Users\st>adb devices
List of devices attached
Error:
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
solve:
1) Execute adb nodaemon server
adb nodaemon server
cannot bind 'tcp:5037'  #adb server 端口绑定失败
2) Execute the command netstat -ano | findstr "5037"
netstat -ano | findstr "5037"
TCP  127.0.0.1:5037  0.0.0.0:0   LISTENING  30960
3) Execute the command or open the task manager
执行命令    tasklist                      #查看所有进程,
执行命令    taskkill /f /pid 30960        #将这个进程kill
Open the task manager: kill the 30960 process, close all adb.exe , right-click the title bar to check the display pid

8. Use the emulator to connect to the computer

C:\Users\st>adb connect 127.0.0.1:7555
connected to 127.0.0.1:7555

Common Emulator Ports

夜神模拟器 端口号:62001
海马玩模拟器 端口号:26944
网易MuMu模拟器 端口号:7555
天天模拟器 端口号:6555
AndroidStudio自带模拟器 端口号: 5554

 

Guess you like

Origin blog.csdn.net/sou_vyp/article/details/129121441