代码之家  ›  专栏  ›  技术社区  ›  Steve Fitzsimons

Intellij gradle 5.0刷新/同步警告和根任务缺失

  •  1
  • Steve Fitzsimons  · 技术社区  · 7 年前

    在当前项目中从gradle 4.10升级到5.0后,我遇到以下错误

    root project 'trunk': Unable to resolve all content root directories</b><eol>Details: org.gradle.api.InvalidUserDataException: The destinationDir property must be set. Please apply the base plugin or set it explicitly.</i>
    

    以前是否有人遇到过此错误并设法解决?

    1 回复  |  直到 7 年前
        1
  •  2
  •   Nicolas Spycher    7 年前

    我也有同样的问题。对我来说,解决方案是将基本插件应用于项目的根构建文件。

    apply plugin: 'base'