java.net.UnknownHostException: Unable to resolve host "stats.umsns.com": No address associated with

时间:2021-11-17 15:53:32

01-04 12:14:28.277 28154-31939/? E/UClient: java.net.UnknownHostException: Unable to resolve host "stats.umsns.com": No address associated with hostname:  [Caught Exception in httpGetRequest()]
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:125)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:74)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.net.InetAddress.getAllByName(InetAddress.java:752)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:187)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:156)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:98)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.http.HttpEngine.createNextConnection(HttpEngine.java:345)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:405)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:521)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.umeng.socialize.net.utils.UClient.httpGetRequest(UClient.java:216)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.umeng.socialize.net.utils.UClient.execute(UClient.java:72)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.umeng.socialize.net.base.SocializeClient.execute(SocializeClient.java:33)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.umeng.socialize.net.stats.StatsAPIs.shareStatsStart(StatsAPIs.java:47)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  com.umeng.socialize.net.analytics.SocialAnalytics$4.run(SocialAnalytics.java:141)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
01-04 12:14:28.278 28154-31939/? E/UClient:         at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)



从Log中看出是UmengSDK中的异常,于是联系Umeng客服,得到反馈升级SDK即可。