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