Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OS High Sierra 10.13.2 - Android Emulator has no internet connection

Tags:

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 ?

like image 948
Stefan Ciprian Hotoleanu Avatar asked Jan 23 '18 21:01

Stefan Ciprian Hotoleanu


People also ask

How do I enable Internet on Android emulator?

Go to your Android\Sdk\emulator folder and open command prompt. Type emulator -list-avds to see available emulator names. Type emulator -avd name-of-your-device -netdelay none -netspeed full -dns-server 8.8. 8.8 command and press enter.

Do Android emulators work on Mac?

Whether it's a game, productivity app, or something else, if you're using a Mac computer, you can still get access to Android apps. All you have to do is use an Android emulator.


1 Answers

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 
like image 50
insa_c Avatar answered Oct 13 '22 01:10

insa_c