![android studio mac set up emulator android studio mac set up emulator](https://res.cloudinary.com/dxkxvfo2o/image/upload/v1590387473/AndroEmulator/1_vcrfas.png)
Then navigated to the sdk emulator location (for convenience): cd ~/Library/Android/sdk/emulator I'm on a Mac, so first I checked my network settings to find what my DNS was set to: System Preferences -> Network -> Wi-Fi -> Advanced -> DNS In order to be able to get network access for my emulator I needed to launch the emulator with the same corporate dns-server specified. You are setting the DNS server only for the emulator, avoiding other problemsįor me the issue appears to stem from the DNS settings my company enforces. In this case, you don't need to set DNS server in System Preferences.
#Android studio mac set up emulator android#
Now, you can start AVD from Android Studio normally
![android studio mac set up emulator android studio mac set up emulator](https://techstacker.com/static/70bf4a2a68efad24310c30e99e8d457c/faa5c/android-studio-emulator-settings.jpg)
Then restart the emulator so the changes take effect.Īnother option is to pass dns-server params when start Android emulator.Īccording with this solution, I changed the emulator executable name and I created a bash script to load the AVD with param -dns-server 8.8.8.8. System Preferences -> Network -> select Wi-Fi os left panel -> Advanced on right panel -> DNS -> add new DNS server for example 8.8.8.8 and 8.8.4.4 (Google Public DNS) or 1.1.1.1 and 1.0.0.1 (Cloudflare and APNIC DNS) or another public DNS provider.