I have an emulator but I am not able to access the internet inside that emulator. So, I have figured out a solution in which I am running that emulator using cmd by passing an additional argument -dns-server 8.8.8.8 .
After that, my command will be emulator -avd 4_XL_API_30 -dns-server 8.8.8.8 to start my emulator.
But, now I want to start the emulator using run button of android studio.
Is there any way where I can add -dns-server 8.8.8.8 as an additional argument when I run that emulator on android studio.
OR
Can I add DNS server to the emulator so that I don't need to pass that as an additional argument?