Android出现declaration of org.apache.http.message.BasicLineFormatter appears in /system/framework/
这是由于使用了CloseableHttpClient造成的,把
CloseableHttpClient httpclient = HttpClients.createDefault(); CloseableHttpResponse httpResponse = httpclient.execute(httpRequest);
替换成
HttpClient httpclient = new DefaultHttpClient(); HttpResponse httpResponse = httpclient.execute(httpRequest);
如果这篇文章对你有用,可以关注本人微信公众号获取更多ヽ(^ω^)ノ ~