android - 错误 :Unknown host 'dl.google.com' You may need to adjust the proxy settings in Gradle

标签 android gradle android-gradle-plugin

我在 android studio 3.0 中遇到这个错误。

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

我已经检查了我的自动代理选项。

enter image description here

最佳答案

我也遇到了同样的问题。我尝试了以下方法,它对我有用:

window

转到:文件 > 设置 > 外观和行为 > 系统设置 > HTTP 代理 [在 IDE 设置下] 启用以下选项自动检测代理设置

苹果机

转到:Android Studio > Preferences > Appearance & Behavior.. 等

您还可以使用测试连接按钮并通过 google.com 检查它是否有效。

关于android - 错误 :Unknown host 'dl.google.com' You may need to adjust the proxy settings in Gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47688811/

相关文章:

android - Icepick 坏了吗?

android - 找不到.so文件android studio

android - 如何禁用android中 Activity 中的所有输入控件?

java - 如何从一个类调用另一个类的对象

java - Android Arraylist迭代根据是否存在设置或添加

spring-boot - Spring Boot 插件不会在 jar 中添加 lib 文件夹

android - API PHP 查询正确,但向 Android 客户端返回空

android - 任务 ':sqflite:createFullJarDebug'的执行失败

java - 如何将引用的项目部署到 JBoss 上?

android - 该项目正在使用不受支持的 Android Gradle 插件版本 (0.7.3)