Error:Kotlin: Output directory not specified for Module 'xxx' production
环境
Inteijj IDEA : 2019.2
前言
今天遇到的问题,就是点击IDEA
编译(就是那个小锤头)时,报了标题那个错误。
这个问题,其实就是,IDEA编译完项目后,生成的class文件,应该存到哪里?没有指定这个路径的话,就报了如题的错误。
解决办法
路径:file
-> ‘Project structure…’ 再左侧的Project Setting
-> Project
,右侧的Project compiler output
输入一个项目编译后文件输入的路径。
左侧:modules
-> 项目名称
-> Path
-> Compiler output
选择:herit project compile output path
意思就是:继承项目的output path
(输入路径)