雷电模拟器常见问题处理

雷电模拟器常见问题处理

错误1:5037端口被占用

daemon not running; starting now at tcp:5037

解决办法:

1.查看端口

netstat -ano | findstr "5037"
实例:TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       16468

2.找到末尾PID进程

tasklist | findstr "16468"
实例:adb.exe         16468 Console           3     12,800 K

3.结束进程

taskkill -f -pid 14448

4.尝试连接

 adb shell

错误2:

C:\Users\Administrator>adb shell
error: more than one device/emulator

解决:
1.查看设备:

C:\Users\Administrator>adb devices
List of devices attached
127.0.0.1:5555  device
emulator-5554   offline

2.执行:

adb -s 127.0.0.1:5555 shell
报错:error: device offline
adb kill-server
adb start-server
adb shell

3.端口转发:

adb -s 127.0.0.1:5555 forward tcp:27042 tcp:27042
adb -s 127.0.0.1:5555 forward tcp:27043 tcp:27043

你可能感兴趣的:(adb,爬虫)