0
我的IntelliJ java Gradle項目失敗並顯示錯誤。錯誤:在根項目上找不到屬性'semanticVersion'
Error:Could not find property 'semanticVersion' on root project 'MY_PROJECT_NAME'.
它沒有創建src和其他文件夾。
我的IntelliJ java Gradle項目失敗並顯示錯誤。錯誤:在根項目上找不到屬性'semanticVersion'
Error:Could not find property 'semanticVersion' on root project 'MY_PROJECT_NAME'.
它沒有創建src和其他文件夾。
我試圖創建一個新的Gradle Java項目時出現此錯誤。在IntelliJ嚮導中使用自動生成文件夾選項創建項目後,我沒有看到任何源文件或等級包裝文件夾。此外,該項目構建與錯誤
Error:Could not find property 'semanticVersion' on root project 'MY_PROJECT_NAME'.
每次失敗了最終的解決方案是,有在我的項目沒有「gradle.properties」文件。在創建一個新文件「gradle.properties」並添加了'semanticVersion = 1.0.0'行後,一切正常。希望這可以幫助某人。
請不要在問題中回答你的問題。相反,提交一個自我回答 – Li357
更正,謝謝@AndrewL。 –