我收到「Host is unresolved:api。facebook.com:443」logcat 錯誤,同時我嘗試從我的Android應用授權Facebook。 任何想法爲什麼會發生?主機未解決:api。 facebook.com:443
登錄貓:
01-10 15:28:55.891: E/Facebook(1084): Host is unresolved: api.facebook.com:443
01-10 15:28:55.918: W/System.err(1084): java.net.UnknownHostException: Host is unresolved: api.facebook.com:443
01-10 15:28:55.938: W/System.err(1084): at java.net.Socket.connect(Socket.java:1038)
01-10 15:28:55.938: W/System.err(1084): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:62)
01-10 15:28:55.938: W/System.err(1084): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:88)
01-10 15:28:56.047: W/System.err(1084): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java:927)
01-10 15:28:56.047: W/System.err(1084): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:909)
01-10 15:28:56.047: W/System.err(1084): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:396)
01-10 15:28:56.047: W/System.err(1084): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:147)
01-10 15:28:56.088: W/System.err(1084): at com.facebook.android.Util.openUrl(Util.java:178)
01-10 15:28:56.088: W/System.err(1084): at com.facebook.android.Facebook.request(Facebook.java:559)
01-10 15:28:56.088: W/System.err(1084): at com.facebook.android.AsyncFacebookRunner$2.run(AsyncFacebookRunner.java:253)
在此處分享您的logcat –
01-10 15:28:55.891:E/Facebook(1084):Host is unresolved:api.facebook.com:443 01-10 15:28:55.918:W/System.err (1084):java.net.UnknownHostException:Host is unolved:api.facebook.com:443 01-10 15:28:55.938:W/System.err(1084):\t at java.net.Socket.connect( Socket.java:1038) –
你如何連接到互聯網? – Henry