Output path is shared between the same module error

后端 未结 13 2076
天涯浪人
天涯浪人 2021-02-01 13:16

When I try to compile any class in my project I get the error below:

Error scala: Output path .../eval/target/test-classes is shared between: Module \'eval\' tes         


        
13条回答
  •  囚心锁ツ
    2021-02-01 13:20

    This is really a response to @habitat's comment on @Corey Klein 's answer. If someone with enough reputation wants to edit, please go ahead...

    I had the same problem with the setting being reset every time I refreshed the project. My solution (with Gradle, although I'm guessing there is an equivalent Maven plugin) was to add

    apply plugin: 'idea'
    idea {
        module {
            inheritOutputDirs = true
        }
    }
    

提交回复
热议问题