Ensure the hostname for the MAG server is accessible.
Typically this caused by a bad hostname/ IP address or a failed network connection.
In the case of emulated devices where name resolution is done from the host systems hosts file it may be necessary to push an updated file directly to the device.
Change to the sdk/tools folder:
1) emulator -avd <avdname> -writable-system
2) ./adb root
3) ./adb remount
4) ./adb push <local>/hosts /etc/hosts