Error!]the type java.lang.String cannot be resolved. it is indirectly referenced from required .class files
原因:导入一个外来的工程时会出现以上错误,是因为你的电脑上安装了多个版本的jdk
解决方法:
(1)project->properties->Java Bulid Path 将原有的jdk删除
(2)Java Build Path -----> Libraries---->Add Libraries----->JRE System Library ,选择适合的即可。
"the type java.lang.String cannot be resolved. it is indirectly referenced from required .class"
最新推荐文章于 2023-10-16 16:38:17 发布