当前位置: 代码迷 >> Android >> 在Android中导入httpcore-4.3.2.jar包,调用EntityUtils.consume(HttpEntity)提示找不到该步骤
  详细解决方案

在Android中导入httpcore-4.3.2.jar包,调用EntityUtils.consume(HttpEntity)提示找不到该步骤

热度:33   发布时间:2016-04-28 02:15:15.0
在Android中导入httpcore-4.3.2.jar包,调用EntityUtils.consume(HttpEntity)提示找不到该方法
在Android中导入httpcore.jar包,调用EntityUtils.consume(HttpEntity)提示找不到该方法,
但是在Reference Libraries的httpcore-4.3.2.jar包中看到org.apache.http.util.EntityUtils类中确实有consume方法,
而且同样的httpcore-4.3.2.jar包在Java工程中是能调用该方法的。
谁遇到过这种情况?
------解决思路----------------------
1.保证添加的其它包里没有同名类。
2.使用别的方法代替:entity.consumeContent();
  相关解决方案