adb devices
adb shell ping 8.8.8.8
adb shell ping google.com ->
ping: unknown host google.com
macOS
DNS settings are specified in the Network window.
- Click Apple menu > System Preferences > Network.
- Click Select Connected Wifi > Details
- Select the DNS tab.
- Add 8.8.8.8 and 8.8.4.4
- Click OK > Apply.
- Restart AVDs.
adb shell curl http://google.com
Run:
adb shell
If this works, you’ll enter a shell on the device. Now try:
ping google.com
adb kill-server
adb start-server
adb devices