java.net.UnknownHostException: Unable to resolve host "www.google.com": No address associated with hostname

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This is a bug that happens in Slide in versions 4.2.0 and before. Update to 4.2.2 or further to fix it.

Solutions on the web

via Google Groups by Aledis, 7 months ago
Unable to resolve host "www.google.com": No address associated with hostname
java.net.UnknownHostException: Unable to resolve host "www.google.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:400)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
at java.net.InetAddress.getAllByName(InetAddress.java:220)
at libcore.net.http.HttpConnection.(HttpConnection.java:71)
at libcore.net.http.HttpConnection.(HttpConnection.java:50)
at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)
at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:86)
at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:308)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:460)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:441)
at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)
at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)
at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)
at libcore.net.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:280)
at com.gc.android.market.api.Tools.postUrl(Tools.java:55)
at com.gc.android.market.api.MarketSession.login(MarketSession.java:139)
at com.gc.android.market.api.MarketSession.login(MarketSession.java:126)
at com.vodafone.threads.MarketThread$SearchAppRunnable.run(MarketThread.java:86)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at com.vodafone.threads.MarketThread.run(MarketThread.java:46)

Users with the same issue

15 times, 3 months ago
Once, 4 months ago
2 times, 4 months ago
4 times, 6 months ago
2 times, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.