Invalid use of SingleClientConnManager: connection still allocated.Make sure to release the connection before allocating another one.java.lang.IllegalStateException: Invalid use of SingleClientConnManager: connection still allocated.Make sure to release the connection before allocating another one....
解决办法:加上 new ThreadSafeClientConnManager() 即可解决该问题
HttpClient httpclient = new DefaultHttpClient(new ThreadSafeClientConnManager());