Emulator internet access issue


adb devices

adb shell ping 8.8.8.8

adb shell ping google.com ->
ping: unknown host google.com

Solved: https://medium.com/@daydreamer_/how-to-fix-android-emulator-wi-fi-connected-with-no-internet-c62fd4ed652d

macOS

DNS settings are specified in the Network window.

  1. Click Apple menu > System Preferences > Network.
  2. Click Select Connected WifiDetails
  3. Select the DNS tab.
  4. Add 8.8.8.8 and 8.8.4.4
  5. Click OK > Apply.
  6. 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

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *