当前位置: 代码迷 >> Android >> 请教关于 StringEntity 报错的有关问题
  详细解决方案

请教关于 StringEntity 报错的有关问题

热度:98   发布时间:2016-04-28 03:32:55.0
请问关于 StringEntity 报错的问题
请问   在一个文件里边 

import org.apache.http.StringEntity;

但是确实出现个  红 色的 X 提示错误,The import org.apache.http.StringEntity can not be resolved。

所以在  文件里边的一个函数
public void in() {
。。。。。。
        StringEntity se = new StringEntity(para); 
。。。。。。。
}

错误提示是:
Multple markers at this line
- StringEntity cannot be resolved to a type
- StringEntity cannot be resolved to a type

这个是由于 上面 
import org.apache.http.StringEntity;  这个出现报错。但是这里为什么会报错呢? 
麻烦知道的朋友告知下吧 ,谢谢啦

------解决思路----------------------
仔细查看下代码