摘要:
调试中通过android simulator模拟器链接localhost或者127.0.0.1,因为我在电脑上面建立了apache,我的代码大概就是URL url = new URL(urlString); URLConnection urlconn = url.openConnection();但是报错了!!Exception 1:java.net.ConnectException: localhost/127.0.0.1:8080 -Connection refused问题是这样的,android模拟器(simulator)把它自己作为了localhost,也就是说,代码中使用localh 阅读全文