22

Just installed Android Studio 3 on Mac OS High Sierra 10.13.2 and created a virtual device. Lunched the emulator, but it seems that there is no internet connection. Please check the screen grab. What am I missing ?

Gianfranco P.
  • 8,605
  • 5
  • 46
  • 64
Stefan Ciprian Hotoleanu
  • 2,042
  • 1
  • 22
  • 29
  • Possible duplicate of [Internet stopped working on Android Emulator (Mac OS)](https://stackoverflow.com/questions/44535500/internet-stopped-working-on-android-emulator-mac-os) – lenooh Nov 23 '18 at 11:08

1 Answers1

61

That occasionally happens to me as well. Just use different DNS and it'll work.

Go to your android-sdk/emulator and run, this will start the emulator:

./emulator -avd YOUR_EMULATOR_NAME -dns-server 8.8.8.8,8.8.4.4

You can find the emulator name you need by running the command

./emulator -list-avds
Alexander Farber
  • 19,827
  • 73
  • 224
  • 393
insa_c
  • 2,661
  • 1
  • 14
  • 11