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

编译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

转:
https://blog.csdn.net/loveshunyi/article/details/104798937/

posted @ 2020-06-20 12:25  你就像甜甜的益达  阅读(361)  评论(0编辑  收藏  举报