You have to define the project compiler output in File -> Project Structure... -> Project -> Project compiler output: with a value