You may need to adjust the proxy settings in Gradle

当使用gradle管理项目并引入外部依赖库描述文档时,因为众所周知的GFW的缘故,会导致出现

You may need to adjust the proxy settings in Gradle

错误提示,如果尝试了网络上提供的其它解决无效,可尝试如下的方法

1、通过 ​​ ​IPAddress.com​​ 查找 raw.githubusercontent.com 的 ip 地址

2、打开 C:/Windows/System32/drivers/etc/hots,增加dns解析

猜你喜欢

转载自blog.csdn.net/blackhost/article/details/125861239