Cause: org/gradle/api/internal/plugins/DefaultConvention

從spring下載了一個springboot初始化項目,gradle-wrapper.properties 中使用了 gradle 6.4(如下)

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

結果在構建的時候報錯如下:

Cause: org/gradle/api/internal/plugins/DefaultConvention

使用的idea版本是  IntelliJ IDEA Community Edition 2018.3.2

解決:使用新版本的idea解決,重新下載:IntelliJ IDEA Community Edition 2020.1.2,導入並重新build解決。

參見:https://stackoverflow.com/questions/61733738/cannot-sync-gradle-projects-with-intellij?r=SearchResults

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