Android Emulator on MacOS 10.14 has internet only after restarting machine
It's most likely a bug with IPv6 name resolution, removing any IPv6 nameserver in /etc/resolv.confg fixes the issue, see https://issuetracker.google.com/issues/155686508#comment3