打开eclipse,找到windows-->Show view-->Other 解决异常:eclipse项目中程序没错却有红叉 找到General下的problems,双击problems后。控制台会出现项目报错的原因,再根据错误提示去解决就好 解决异常:eclipse项目中程序没错却有红叉