The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files



1、The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files

The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files_第1张图片

解决

有时候用eclipse导入一个外来的工程时会出现以上错误,这主要是因为你的电脑上安装了多个版本的jdk,解决的办法是:右击工程目录下的jdk 选择 build path---->config build path 或者在eclipse菜单栏点击project----->propertys     在里面再选择Java Build Path -----> Libraries---->Add Libraries----->JRE System Library

你可能感兴趣的:(The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files)