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.
  • 10,049
  • 6
  • 51
  • 68
Stefan Ciprian Hotoleanu
  • 2,202
  • 1
  • 23
  • 30
  • 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
  • 21,519
  • 75
  • 241
  • 416
insa_c
  • 2,851
  • 1
  • 16
  • 11