其他分享
首页 > 其他分享> > 雷电4 设置代理不生效

雷电4 设置代理不生效

作者:互联网

进入安装目录D:\Program Files\leidian\LDPlayer4
powershell
.\adb
cmd
adb

如果出现

adb shell
error: more than one device and emulator

碰到这种情况,首先要查一下,是不是真的有多个设备或模拟器。

adb devices
List of devices attached
emulator-5554 device
127.0.0.1:5555 device
发现还真是多个设备,那就需要为ADB命令指定设备的序列号了。
adb -s emulator-5554 shell

也就是如上所示,给命令加上-s的参数就可以了!

如果实际上只有一个设备或模拟器,并且查到有offline的状态;
那就说明是ADB本身的BUG所导致的,就需要用如下的方法处理下了:
adb kill-server
taskkill /f /im adb.exe
第一条命令是杀ADB的服务,第二条命令是杀ADB的进程!
如果第一条没有用,才考虑用第二条命令再试试看的!

最后执行这句命令
设置代理
.\adb -s 127.0.0.1:5555 shell settings put global http_proxy 192.168.0.72:8888
移除代理
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
或者没有delete命令时
adb shell settings put global http_proxy :0

标签:shell,http,settings,global,代理,雷电,adb,proxy,生效
来源: https://www.cnblogs.com/yuyw/p/15963573.html