Cannot start compilation: the output path is not specified for module "demo". Specify the output path in the Project Structure dialog.

原因

没有指定输出路径,导致错误。

解决办法

1、在项目下新建文件夹out

2、点击File--> Project Structure, 在project compiler output
中添加该目录。

点击确定即可。

原文地址:https://www.cnblogs.com/youcoding/p/12966205.html