AS报错:Unknown host 'dl.google.com'. You may need to adjust the proxy settings

在编译项目的时候 Android Studio 提示出现如下错误:

Unknown host 'dl.google.com'. You may need to adjust the proxy settings

 

解决方法:

Windows:

    打开 C:\Windows\System32\drivers\etc 文件夹下的 hosts 文件,添加一行 dl.google.com 的 IP 地址:

    203.208.40.36 dl.google.com

posted @ 2022-08-27 15:49  小德505  阅读(60)  评论(0)    收藏  举报