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)

umeng.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    急! 微信SSO登陆不成功 no found access_token_U盟友盟社会化分享论坛_【友盟+】开发者社区

    umeng.com | 7 months ago
    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)

    Root Cause Analysis

    1. 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()
    2. Android
      HttpsURLConnectionImpl.connect
      1. com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
      2. com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
      3. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
      4. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
      5. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
      6. com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
      7. com.android.okhttp.internal.http.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
      8. com.android.okhttp.internal.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:25)
      8 frames
    3. com.umeng.socialize
      UMAsyncTask$1.run
      1. com.umeng.socialize.weixin.net.WXAuthUtils.request(WXAuthUtils.java:33)
      2. com.umeng.socialize.weixin.controller.UMWXHandler$4.doInBackground(UMWXHandler.java:932)
      3. com.umeng.socialize.weixin.controller.UMWXHandler$4.doInBackground(UMWXHandler.java:1)
      4. com.umeng.socialize.common.UMAsyncTask$1.run(UMAsyncTask.java:61)
      4 frames
    4. Android Platform
      Handler.dispatchMessage
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      2 frames