It is not possible to run the emulator directly through Android Studio, that is, the Internet can only be connected through the specified DNS.
Note: After the 'Terminal' management is closed, the emulator will also be closed, and only the emulator running by this method can be connected to the Internet. You can leave it alone at this time, because you can already access the Internet happily (take Amazon's official website as an example) The simulator will open at this time, although the WIFI icon has not changed, but the WI-FI setting page will display Limited connection (limited network connection) Specify the DNS of the simulator (for example, my simulator name: Pixel_2_API_29).
The network cannot be accessed at this timeĬlose the emulator first, open the 'terminal' management, and enter the emulator emulator page cd /Users/Own Mac username/Library/Android/sdk/emulator WI-FI setting page, it will display connected, no internet (connected, unable to access the network) You will find a small cross on the Wi-Fi icon
When you first create an emulator, you will find that the emulator cannot access the network This tutorial is based on the emulator with Android 10.0 system