idea 報錯 Directory '/Users/codes/other/tool-box/tool-box' does not contain a Gradle build.

idea 報錯 Directory '/Users/codes/other/tool-box/tool-box' does not contain a Gradle build.

 

Gradle build時提示IDEA The specified project xxxx directory does not exist.

前提
因爲我之前想自己開發一個將sql文件格式化的插件,中途放棄直接用程序寫完了,插件開發時用的就是gradle,但是後來不用了就直接把一個項目給刪掉了。刪掉之後每次Maven打包都會有這個錯誤提示,如圖:


解決辦法
1.在.idea文件夾下面找一個gradle.xml文件

在右側找到了我的之前刪除的項目,刪掉這一行

 

刪掉之後會發現右側連“gradle”的tab也沒有了,這個時候把idea關了重新打開。maven打包就不會出現這個錯誤提示了

 

https://blog.csdn.net/weixin_43197268/article/details/107809330

 

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