Could not get unknown property classesDir for main classes of type org.gradle.api.internal

86 阅读1分钟

编译spring源码报错:

Could not get unknown property ‘classesDir’ for main classes of type org.gradle.api.internal然后卡死,

版本

idea:2019.2
gradle:6.3

解决:

  1. 将build.gradle中 output.classesDir 修改为 output.classesDirs
  2. 将aspects.gradle中 output.classesDir 修改为 output.classesDirs

原因:

Gradle 5.x以上 sourceSets.main.output.classesDir改名字了 sourceSets.main.output.classesDirs

转:
blog.csdn.net/loveshunyi/…