本文介绍了无法解析符号HttpEntity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写代码时,导入org.apache.http.HttpEntity;



它给出错误无法解析符号HttpEntity。

when writing code, import org.apache.http.HttpEntity;

It gives error cannot resolve symbol HttpEntity.

推荐答案

Quote:

Commons HttpClient项目现已停止生效,不再开发。它已被HttpClient和HttpCore模块中的Apache HttpComponents项目取代,它提供了更好的性能和更大的灵活性。

[]

The Commons HttpClient project is now end of life, and is no longer being developed. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility.
more...[^]



所以从现在起你将使用 org.apache.http.client.HttpClient



-KR


So from now on you will be using, org.apache.http.client.HttpClient

-KR


这篇关于无法解析符号HttpEntity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 01:37