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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章