Enter the installation directory D:\Program Files\leidian\LDPlayer4
powershell
.\adb
cmd
adb
if it appears
adb shell
error: more than one device and emulator
In this case, the first thing to check is whether there are really multiple devices or emulators.
adb devices
List of devices attached
emulator-5554 device
127.0.0.1:5555 device
It is found that there are multiple devices, then you need to specify the serial number of the device for the ADB command.
adb -s emulator-5554 shell
That is, as shown above, just add the -s parameter to the command!
If there is actually only one device or simulator, and the offline status is found;
it means that it is caused by a bug in ADB itself, and it needs to be dealt with as follows:
adb kill-server
taskkill /f /im adb The first command of .exe
is to kill the ADB service, and the second command is to kill the ADB process!
If the first one doesn’t work, consider using the second one to try again!
Finally execute this command to
set the proxy,
.\adb -s 127.0.0.1:5555 shell settings put global http_proxy 192.168.0.72:8888
remove the proxy
adb shell settings delete global http_proxy&adb shell settings delete global global_http_proxy_host&adb shell settings delete global global_http_proxy_port
or when there is no delete command
adb shell settings put global http_proxy :0