天天看点

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)