后面的gradle代理在Android中工作室1.3 [英] gradle behind proxy in Android Studio 1.3
问题描述
我刚刚升级的Android Studio来月版2015年建于28和代理服务器设置停止工作。
I've just upgraded Android Studio to version built on 28 July 2015. And proxy settings stopped working.
我把它们配置为在AS preferences和项目的gradle.properties是这样的:
I have them configured in AS preferences and in project's gradle.properties like this:
systemProp.http.proxyHost=some.proxy.adress.com
systemProp.http.proxyPort=3128
然而gradle这个构建失败暗示我应该在任何graddle属性或配置代理IDE。
And yet gradle build fails suggesting I should configure the proxy in either graddle properties or IDE.
错误:连接超时:连接。如果你是后面的HTTP代理,
请无论是在IDE或摇篮配置代理设置。
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
还有什么可以我尝试?
P.S。代理的工作原理,并拾取正确地从Android的工作室preferences,因为git的作品如预期。
P.S. Proxy works and is picked-up properly from Android Studio preferences, as git works as expected.
推荐答案
也许你还需要配置<一个href=\"https://docs.gradle.org/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy\">https设置
systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
这篇关于后面的gradle代理在Android中工作室1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!