Connect to 127.0.0.1:7890 [/127.0.0.1] failed: Connection refused (Connection refused)

项目启动运行很久,然后报了这个错
Connect to 127.0.0.1:7890 [/127.0.0.1] failed: Connection refused (Connection refused)

解决方法:

1.删除.gradle然后重启studio

2.注释掉自动生成的proxyhost和proxyport

image.png

3.关掉 proxy setting

在HTTP Proxy设置中将“Auto-dectect proxy settings" 切换为 “No proxy".


image.png

4.最后重启Android Studio

你可能感兴趣的:(Connect to 127.0.0.1:7890 [/127.0.0.1] failed: Connection refused (Connection refused))