cannot be resolved to a type in same package 问题解决
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cannot be resolved to a type in same package 问题解决相关的知识,希望对你有一定的参考价值。
在 STS 上,一个类引用在相同 package 中另一个类,但是报 cannot be resolved to a type 错误。
解决方法 :
Alternatively, you can highlight the project :
Choose
Clean ...
from Project menu and if you have activated theBuild Automatically
option (in the same menu), the classes will be generated anew.
参考资料 :
Why can‘t eclipse resolve class in same package?, stackOverFlow
以上是关于cannot be resolved to a type in same package 问题解决的主要内容,如果未能解决你的问题,请参考以下文章
Eclipse “cannot be resolved to a type”
HttpServletRequest cannot be resolved to a type。
cannot be resolved to a type in same package 问题解决
Java 出现cannot be resolved to a type