JDK版本不一致 我用的是JDK11 打开File---->Project Structure---->project File---->Settings---->Java Compiler 再次运行okk