无法同步gradle项目(未知主机'services.gradle.org') [英] Failed to sync gradle project (Unknown host 'services.gradle.org')
问题描述
当我在 android studio
中创建一个新项目时,出现 Gradle
的错误,我不是经验丰富的 android 编程请帮助我,
查看http代理错误
尝试了上述解决方案(由Sathish Kumar J),但没有奏效。
如果在此链接中找到了以下解决方案。
http:// vjscrazzy。 blogspot.co.il/2016/02/failed-to-sync-gradle-project.html
步骤1
file>建立>外观和行为>系统设置> HTTP代理>设置无代理
步骤2
构建,执行和部署>构建工具> gradle>现在在项目级别设置下>选择本地gradle分发> gradle home = F:/ Program Files / Android / Android Studio / gradle / gradle-2.4
注意:
在我的情况下,我的默认android studio .gradle文件夹位于
F:/ Program Files / Android / Android Studio / gradle / gradle-2.4
将其改为您的defualt目录。
I have an error with Gradle
, when I create a new project in android studio
, I'm not experienced in android
programming please help me,
see the http proxy error
I had the same problem and i tried the above solution (by Sathish Kumar J) but it didnt work.
if found the solution below at this link. http://vjscrazzy.blogspot.co.il/2016/02/failed-to-sync-gradle-project.html
step 1
file>Setttings>appearance and behaviour>system setttings>HTTP proxy> set No Proxy
step 2
build,execution and deployment> Build tools > gradle>now under project level settings > select local gradle distribution>gradle home = F:/Program Files/Android/Android Studio/gradle/gradle-2.4
NOTE:
in my case my default android studio .gradle folder is located in
"F:/Program Files/Android/Android Studio/gradle/gradle-2.4"
change it with your defualt directory.
这篇关于无法同步gradle项目(未知主机'services.gradle.org')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!