java.net.UnknownHostException: Unable to resolve host "api.weixin.qq.com": No address associated with hostname 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at java.net.InetAddress.lookupHostByName(InetAddress.java:485) 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at java.net.InetAddress.getAllByNameImpl(InetAddress.java:280) 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at java.net.InetAddress.getAllByName(InetAddress.java:243) 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)

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

Solutions on the web

via umeng.com by Unknown author, 1 year ago
Unable to resolve host "api.weixin.qq.com": No address associated with hostname 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.errat java.net.InetAddress.lookupHostByName(InetAddress.java:485) 05-29 16:42:21.376  10456-11821
java.net.UnknownHostException: Unable to resolve host "api.weixin.qq.com": No address associated with hostname 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at java.net.InetAddress.lookupHostByName(InetAddress.java:485) 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at java.net.InetAddress.getAllByNameImpl(InetAddress.java:280) 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at java.net.InetAddress.getAllByName(InetAddress.java:243) 05-29 16:42:21.376  10456-11821/com.asus.zenlife W/System.err﹕ at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
at com.umeng.socialize.weixin.net.WXAuthUtils.request(WXAuthUtils.java:33)
at com.umeng.socialize.weixin.controller.UMWXHandler$4.doInBackground(UMWXHandler.java:932)
at com.umeng.socialize.weixin.controller.UMWXHandler$4.doInBackground(UMWXHandler.java:1)
at com.umeng.socialize.common.UMAsyncTask$1.run(UMAsyncTask.java:61)
at android.os.Handler.handleCallback(Handler.java:739)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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