**Even I open the emulator as -dns-server 8.8.8.8, there is still no internet connectivity in the android studio emulator.
./emulator -avd Pixel_XL_API_26 -dns-se