Andy emulator mac 10.6.8
Now launch your emulator with emulator -dns-server 8.8.8.8 command from the terminal which forces the emulator to use 8.8.8.8 as its DNS and the emulator will have internet. So the trick is that you have your google DNS(8.8.8.8) configured in your network settings after your default router settings - this part takes care of downloading the dependencies from jcenter() and the sync and build succeeds.
ANDY EMULATOR MAC 10.6.8 MAC OS
Mac OS is not very popular for high end games and therefore you can install Nox on your Mac and enjoy high end android games without any lag. Nox app player allows you to emulate the android experience right on your mac computer.
ANDY EMULATOR MAC 10.6.8 FOR MAC
But if i change the DNS in my network settings, the google-services plugin which fetches your dependencies especially the one's getting downloaded from jcenter() will not be downloaded and hence your sync will fail which eventually fails your build. Nox for mac is free to download and you would be able to play high end android games easily on your mac. The problem is when you are connected through the router, the androidwifi in your emulator uses the settings and the sets the DNS to something other than 8.8.8.8 which is the google DNS(I presume this is kinda mandatory setting for the androidwifi to gain internet access).
![andy emulator mac 10.6.8 andy emulator mac 10.6.8](https://educationdpok.weebly.com/uploads/1/2/6/6/126685101/667526588.png)
I hope it works for : I figured the problem with this and fixed it. This fixed it for me after I unsuccessfully tried all the other solutions found on this page and many others.
![andy emulator mac 10.6.8 andy emulator mac 10.6.8](https://masbermo.weebly.com/uploads/1/2/6/7/126753250/828881846.jpeg)
Click the IP settings dropdown and change it to Static.
![andy emulator mac 10.6.8 andy emulator mac 10.6.8](https://droid4xofficial.com/wp-content/uploads/2020/04/andy.png)
The problem is the DNS settings on the Emulator. It seems the previous answers to this problem no longer work in 2021 (Using Android Studio 4.1.2).