【問題描述】
MacOS 系統中DevEco Studio從3.0.800版本更新至3.0.993版本,編譯項目報錯:
NoSuchFileException: /Applications/DevEco-Studio.app/Contents/tools/gradle/lib/plugins/gradle-diagnostics-7.3.jar
【解決方案】
删除User目錄下的.gradle隐藏檔案夾,重新編譯。
PS:Mac系統中目錄下顯示隐藏檔案的方法:
建立了兩個shell腳本:
show.sh
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
hide.sh
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
然後在.bash_profile中設定别名:
alias show=/yourpath/show.sh
alias hide=/youpath/hide.sh