「IDEA」Cannot start compiler: the SDK is not specified for module XXX. Specify the SDK in the Project

问题:

在使用IDEA的时候, 运行出现了

Cannot start compiler: the SDK is not specified for module "XXX".
Specify the SDK in the Project Structure dialog.

中文直译:

不能开始编译: 没有为XXX模块指定SDK. 请在项目结构会话中指定SDK.

解决方法:

File > Project Structure.. (快捷键Ctrl+Alt+Shift+S)
「IDEA」Cannot start compiler: the SDK is not specified for module XXX. Specify the SDK in the Project

在下拉框中指定你的SDK即可!