java.net.UnknownHostException: Unable to resolve host "<url>": No address associated with hostname and End of input at character 0 of

The Solution to java.net.UnknownHostException: Unable to resolve host "<url>": No address associated with hostname and End of input at character 0 of is


I encountered this problem too, reconnecting the WiFi can solve this.

For us ,we can check if the phone can resolve the host to IP when we start application. If it cannot resolve, tell the user to check the WiFi and then exit.

I hope it helps.

~ Answered on 2013-11-29 03:33:34


Most Viewed Questions: