需指定JDK路径: File -> Project Structure -> Project -> Project SDK -> New -> 选择JDK所在的根目录 转载于:https://www.cnblogs.com/chy18883701161/p/10851997.html