-
-
[未解决,已结帖]
[悬赏][求助] android以太网可以ping通百度不能上网页
1000.00雪花
-
发表于:
2018-1-6 20:36
2607
-
[未解决,已结帖] [悬赏][求助] android以太网可以ping通百度不能上网页
1000.00雪花
我自己编译的android x86 5.1.1,用的以太网.
用手机自带的终端可以ping通www.baidu.com
但是却不能浏览网页.
以下是错误:
01-06 08:02:04.414 2536-2604/? W/System.err: java.net.UnknownHostException: Unable to resolve host "www.ip138.com": No address associated with hostname
01-06 08:02:04.414 2536-2604/? W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:427)
01-06 08:02:04.414 2536-2604/? W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
01-06 08:02:04.414 2536-2604/? W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
01-06 08:02:04.414 2536-2604/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!