Issue
Essentially my issue is that when I run emulator -verbose -avd Nexus_5X_API_19
in the command line the emulator starts up with the argument -dns-server = "w,x,y,z"
where w,x,y,z
are 4 ip addresses for DNS servers. When I run ipconfig /all
I only see x,y,z
listed as my valid DNS servers in Windows. Because of this odd first DNS server, I am unable to access the internet within the emulator. When I run the emulator with emulator -verbose -avd Nexus_5X_API_19 -dns-server "x,y,z"
everything works fine.
But now I want to be able to run my app from within Android Studio 2.2.3 with the corrected DNS servers. So does anyone know how to specify the emulator command line arguments within Android Studio (similar to this answer for the older Eclipse based version: https://stackoverflow.com/a/4736518/1088659), or how to set the default DNS for the emulator to start with?
Solution
Unfortunately, as of 3.0.1, this isn't possible. They removed adding additional arguments for emulators launched from Android Studio. Until they add it back in, starting the emulator from the command line (as you showed) is the only option.
You can track this issue here: https://issuetracker.google.com/issues/37071385
Answered By - jcady
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.