进行sdk目录中的platform-tools目录:

adb devices

系统会罗列出所有设置

adb -s emulator-5554 shell

最后设置网关

setprop net.dns1 192.168.1.1

 

192.168.1.1 代表你物理机的网关,根据实际情况修改

相关文章:

  • 2022-01-21
  • 2021-10-31
  • 2021-06-10
  • 2021-04-28
  • 2021-12-01
  • 2021-10-27
  • 2021-04-04
猜你喜欢
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-07-16
  • 2021-06-04
相关资源
相似解决方案