0
我得到的UnknownHostException在執行步驟:安卓:在的UnknownHostException httpCLient.execute
httppost = new HttpPost("http://www.xxxx.com/contoller/method");
httpResponse response = client.execute(httppost);
java.net.UnknownHostException "www.xxxx.com"
有些地方我閱讀,我需要刪除HTTP://
但那麼我得到這個例外
java.lang.IllegalStateException: Target host must not be null, or set in parameters.
你增加了互聯網權限? – Ahmad
是的。事實上,它昨天正在工作,我沒有改變任何東西。我查了互聯網連接,沒問題。 :( –