問(wèn)題描述
我在 android studio 3.0 中遇到此錯(cuò)誤.
I am getting this error in android studio 3.0.
未知主機(jī) 'dl.google.com' 您可能需要在 Gradle 中調(diào)整代理設(shè)置
Unknown host 'dl.google.com' You may need to adjust the proxy settings in Gradle
我已經(jīng)檢查了我的自動(dòng)代理選項(xiàng).
I have checked my auto proxy option already.
推薦答案
我也遇到了同樣的問(wèn)題.我嘗試了以下方法,它對(duì)我有用:
I was also having the same problem. I tried the following and it's working for me:
Windows
轉(zhuǎn)到:文件 > 設(shè)置 > 外觀 &行為 > 系統(tǒng)設(shè)置 > HTTP 代理 [在 IDE 設(shè)置下] 啟用以下選項(xiàng)自動(dòng)檢測(cè)代理設(shè)置
Go to : File > Settings > Appearance & Behavior > System Settings > HTTP Proxy [Under IDE Settings] Enable following option Auto-detect proxy settings
蘋(píng)果機(jī)
轉(zhuǎn)到:Android Studio > Preferences > Appearance &行為..等
您也可以使用測(cè)試連接按鈕,并在 google.com 上查看它是否有效.
You can also use the test connection button and check with google.com to see if it works or not.
這篇關(guān)于錯(cuò)誤:未知主機(jī) 'dl.google.com' 您可能需要調(diào)整 Gradle 中的代理設(shè)置的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!