1.ROOT权限开启

2.开启网络桥接模式,选择静态IP设置,点击安装桥接网卡,填写IP地址(注意:IP地址要与host主机在同一IP段内)

3.重启后 adb shell就能进入到模拟器控制台中了,如果出现以下内容,说明device未连接。

连接device即可。
C:\Users\Administrator>adb connect 127.0.0.1:5555
connected to 127.0.0.1:5555
如果出现了以下内容,说明有多个device运行,需要指定启动一个device运行。
C:\Users\Administrator>adb shell
adb.exe: more than one device/emulator
C:\Users\Administrator>adb devices
List of devices attached
127.0.0.1:5555 device
emulator-5554 device
adb -s 127.0.0.1:5555 shell