Emulator without Internet connection

1

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 .

    
asked by anonymous 15.07.2017 / 14:27

1 answer

1

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
  • Replace NomeUtilizador with your.
  • Replace Nexus_5X_API_24 with the name of the emulator you want to launch
  • Give it a name and save it, then change the extension from .txt to .bat .

Use it to launch the emulator.

    
15.07.2017 / 15:46