gradle.properties代理密码中的特殊字符

时间:2017-11-30 10:12:44

标签: android gradle android-gradle gradle.properties

我无法与我的公司代理人一起工作。 我使用.npmrc文件中的node.js来实现它。

我的密码在密码中有一个“< ”字符。在.npmrc文件中,我不得不通过写“%3C ”来逃避它:

proxy=http://na_me:123%3C456@proxy.net:80/
https-proxy=http://na_me:123%3C456@proxy.net:80/

我的gradle.properties看起来像这样:

systemProp.http.proxyHost=proxy.net
systemProp.http.proxyPort=80
systemProp.http.proxyUser=na_me
systemProp.http.proxyPassword=123<456
systemProp.http.nonProxyHosts=localhost

systemProp.https.proxyHost=proxy.net
systemProp.https.proxyPort=80
systemProp.https.proxyUser=na_me
systemProp.https.proxyPassword=123<456
systemProp.https.nonProxyHosts=localhost

理论上语法是否正确?或者我是否必须逃避“&lt; ”之类的事情?

我总是得到错误:

Error: Unable to tunnel through proxy. 
Proxy returns "HTTP/1.1 407 Proxy Authentication Required"

我尝试在我的用户文件夹中使用全局gradle.properties文件,并在C:\ Program Files \ Android \ Android Studio \ gradle中创建该文件。

0 个答案:

没有答案
相关问题