如题,1.String uriAPI = "http://127.0.0.1:8080//TestServelt/test.do";
2.HttpPost httpRequest =new HttpPost(uriAPI);
3.(省略)
4.HttpResponse httpResponse=new DefaultHttpClient().execute(httpRequest);第2句一直都在报The constructor HttpPost(String) is undefined的错,版本为android2.2,看了一眼导入包,用快捷键默认导入的是org.apache.http.impl.client.DefaultHttpClient但是参考书上导入的是org.apache.http.client.HttpClient,改为参考书上的包后,错误依旧第4句的execute处报出The method execute(HttpUriRequest) in the type AbstractHttpClient is not applicable for the arguments (HttpPost)的错误,导入包是org.apache.http.HttpResponse新手,求详细教导,感谢