Error:Unknown host #39;dl.google.com#39; You may need to adjust the proxy settings in Gradle(错误:未知主机 dl.google.com 您可能需要调整 Gradle 中的代理设置)
问题描述
我在 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 中的代理设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误:未知主机 'dl.google.com' 您可能需要调整
基础教程推荐
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
