27, I have a Nexus 5 x API aims to Android 8.1 (Google Play) and the Nexus API 5 P and target are Android 7.1.1.
I believe that there should be a way to enable the Internet, or wifi on the simulator provides a virtual focus seems to be a waste.
I'm MAC OS HS 10.13.4 none represented directly connected to the router.
I even try to delete all avds, reinstall them. I even tried using Oreo Android 8.1 install the latest Pixel 2
Seems to have no job. Some people encountered this problem and find a solution?
Any help will be of great help
Thank you, vikram
Update: when I connect my computer mobile phone as a hot spot of wifi, the simulator connected to the Internet through wifi, but when I connect the computer to home router it failed.
CodePudding user response:
The following is a solution of Windows and MAC, but similar solution is applicable to any operating system:On Windows
Open network and sharing center, and then click the current connection & gt; Click "properties" & gt; Double-click Internet protocol version 4 (TCP/IPv4) & gt; Sets the preferred and secondary DNS servers to (screenshot below) :
8.8.8.8
8.8.4.4
On the Mac
Go to the Settings & gt; The network & gt; Senior...> DNS> Remove any of the items you there and add these two items (screenshot below) :
8.8.8.8
8.8.4.4
Restart the emulator, it should address:
Screenshots:
Windows

Mac

CodePudding user response:
Not yet after==Mac add