天天看點

MAC之ERROR: Connection refused (Connection refused)

ERROR: Connection refused (Connection refused)

MAC之ERROR: Connection refused (Connection refused)

這個問題處理過很多遍

但是還是被坑了幾次

解決方案:

1、第一步,查找gradle目錄下cradle-wrapper.proprpeties的gradle版本

MAC之ERROR: Connection refused (Connection refused)

2、在下面這個網站上,找到對應版本下載下傳下來

https://services.gradle.org/distributions/

3、将下載下傳好的放到對應位置上

顯示隐藏檔案夾的方式是打開終端,輸入

在終端輸入:

defaults write com.apple.finder AppleShowAllFiles -bool false 
//此指令關閉顯示隐藏檔案
           

将上面的false改為true即可:

defaults write com.apple.finder AppleShowAllFiles -bool true
// 此指令顯示隐藏檔案
           

指令運作之後需要重新加載Finder才可以。

可以option+command+esc,選訪達,重新啟動。或者是找左上角的蘋果圖示選擇強制退出。再重新打開也可以。

MAC之ERROR: Connection refused (Connection refused)

要放在這個大長串下面呀~

MAC之ERROR: Connection refused (Connection refused)

4、删除代理,即可解決。

MAC之ERROR: Connection refused (Connection refused)