Today I went to continue my application and noticed that the emulator was not connected to the Internet but I'm still using the Android Studio emulator the Nexus 5 API 25 .
I think this is a problem with the version of Android Emulator you are using. I say this because I came across this problem and it disappeared when I upgraded to 26.1.2.
To check which version you have installed, in the icons at the top, click the icon "SDK Manager", the one before the?. In the SDK Tools tab, see the version of the Android Emulator.
During this period I solved the problem by launching the emulator via command:
Open Notepad and create a file with this content ( source ):
start C:\Users\NomeUtilizador\AppData\Local\Android\sdk\emulator\emulator.exe -avd Nexus_5X_API_24 -dns-server 8.8.8.8
NomeUtilizador
with your. Nexus_5X_API_24
with the name of the emulator you want to launch .txt
to .bat
. Use it to launch the emulator.