Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Android Studio / AVD "CANNOT TRANSLATE guest DNS ip" error messages?

About every 4 second after I start the emulator device from my Android Studio project an error message is printed into the Run window. It's extremely annoying because it hijacks the focus. If I'm in the Debug window it switches to the Run window every 4 seconds because of this error no matter what I do.

This started a day ago, but I don't know what induced it. I use the same emulator devices for several months now. Maybe an upgrade of some portion of Android SDK? The external SDK Manager is not invokable any more.

enter image description here


The messages start to come right after I boot up this API 25 wear emulator. One workaround is to make that tab float, then it doesn't hijack my focus; I move it to my second monitor.


I also noticed I cannot connect my Android Wear app running on my physical device (I'm running physical phone with the emulated wear) with my emulator.

like image 435
Csaba Toth Avatar asked Mar 01 '17 08:03

Csaba Toth


1 Answers

It is because you are connect to a network which has a auto-redirect in it or it is not encrypted(HTTP). Start by

  1. Disconnecting yourself from the network.
  2. Restarting Android Studio

If the problem continues try posting a more detailed description of the error If the problem doesn't continue contact your network administrator.

like image 82
Pranav Bhaskar Avatar answered Oct 13 '22 06:10

Pranav Bhaskar