在Android上创建新项目,错误:工作室未知主机“services.gradle.org”新项目、错误、主机、工作室

2023-09-13 23:49:29 作者:我们总是太自以为是

在安装Android工作室,并创造新的项目,得到这个错误..我怎么能解决这个问题? THX

  

未知主机services.gradle.org。

     

请确保主机名是否正确。如果你是落后的HTTP   代理,请配置代理服务器设置无论是在Android的Studio或   摇篮。

     

请IDE日志的详细信息(帮助|查看日志)

解决方案

我也有同样的问题。我尝试以下,现在它的工作对我来说: 请尝试以下操作:

转到...

文件的>的设置的>的外观和放大器;行为的>的系统设置的>的 HTTP代理[在IDE设置] 的启用以下选项的的自动检测代理设置的

如何使用Android Studio模拟运行新的Android项目

您也可以使用测试连接按钮,检查用的 google.com 的,看看它是否工作或没有。

after install Android studio and create new project, get this error.. how i can fix it? thx

Unknown host 'services.gradle.org'.

Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in Android Studio or Gradle.

Consult IDE log for more details (Help | Show Log)

解决方案

I was also having the same problem. I tried the following and it's working for me now: Please try the following steps:

Go to..

File > Settings > Appearance & Behavior > System Settings > HTTP Proxy [Under IDE Settings] Enable following option Auto-detect proxy settings

you can also use the test connection button and check with google.com to see if it works or not.

 
精彩推荐
图片推荐