Making Android emulator connect to internet

Have you ever frustrated that your Android Emulator is not able to connect to Internet? Gave up trying, and just use actual device?

I face that too, and search for Slackoverflow all over, and used to find some solution and later doesn’t work anymore 😭.

I got the solution again!

One day out of no choice, had to get it working. Got it, so share with you.

1. Set your environment path to the emulator path

Make sure you have your environmental path set to the below.

// MacOS
~/Library/Android/sdk/emulator
// Windows
C:\Users\%Username%\AppData\Local\Android\sdk\emulator

In Mac terminal, you could the following

export PATH=”~/Library/Android/sdk/emulator:${PATH}”

2. Test you have access to the right emulator

--

--