1、project structure中检查project、module的SDK版本


2、settings里搜 Java compiler,选择问题module的Target bytecode version


3、成功运行
在项目结构和设置中管理SDK版本及编译目标:确保Java项目的顺利运行,
本文介绍了如何在项目结构(projectstructure)中检查并更新模块的SDK版本,以及在settings中配置Javacompiler的Targetbytecodeversion以确保Java项目的正确编译和运行过程。
1、project structure中检查project、module的SDK版本


2、settings里搜 Java compiler,选择问题module的Target bytecode version


3、成功运行