Error adding module to project: setSdk: sdk ‘17‘ type ‘JavaSDK‘ is not registered in ProjectJdkTable

新安装的JDK17,但是在IDEA中新建模块的时候出现了以下错误。
Error adding module to project: setSdk: sdk ‘17‘ type ‘JavaSDK‘ is not registered in ProjectJdkTable_第1张图片

点击file—>Project Structure
Error adding module to project: setSdk: sdk ‘17‘ type ‘JavaSDK‘ is not registered in ProjectJdkTable_第2张图片
SDK选择自己安装的JDK

Error adding module to project: setSdk: sdk ‘17‘ type ‘JavaSDK‘ is not registered in ProjectJdkTable_第3张图片
SDK选择自己安装的JDK
Error adding module to project: setSdk: sdk ‘17‘ type ‘JavaSDK‘ is not registered in ProjectJdkTable_第4张图片

参考链接:
https://www.cnblogs.com/maxzhangxiaotao/p/17334485.html

你可能感兴趣的:(spring,boot)