The type javax.servlet.http.HttpServletRequest cannot be resolved.

       使用Eclipse进行编写安卓网络通信程序时,出现The type javax.servlet.http.HttpServletRequest cannot be resolved. 问题。

       解决方法:

是缺少serverlet的引用库,解决如下
1.工程右键-properties->java build path
2.在java build path的libraries tab页中选择Add external Jars...按钮
3.选择eclipse的安装目录,plugin目录,找到 javax.servlet.jsp...........。
添加。





原文地址:https://www.cnblogs.com/wishchin/p/9199840.html