本文介绍了Android Studio:需要407代理身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已安装 Android Studio预览版本,因为稳定的IDE版本不支持我的应用程序中正在使用的JetPack.

I have installed Android Studio Preview version since the stable IDE version does not support the JetPack that is being used in my application.

但是我在同步项目时遇到代理问题,

But I am facing proxy issue while syncing the project,

我已经使用Android Studio设置和gradle.properties文件设置了代理,

I have set proxy using both from Android studio settings and gradle.properties file,

gradle.properties

systemProp.http.proxyPort=xxxx
systemProp.http.proxyUser=xxxxx
systemProp.http.proxyPassword=xxxxx
org.gradle.jvmargs=-Xmx1536m
systemProp.https.proxyPassword=xxxxx
systemProp.https.proxyHost=xxxxx
systemProp.http.proxyHost=xxxxx
systemProp.https.proxyPort=xxxxx
systemProp.https.proxyUser=xxxxx

仍然项目同步会出现相同的错误.有解决方案吗?

Still project sync gives the same error. Any solutions?

Studio版本::Android Studio 3.3 Beta 4

Studio Version : Android Studio 3.3 Beta 4

推荐答案

最后我找到了解决方案.

Finally I found a solution.

主目录~/.gradle/gradle.properties.gradle下有一个gradle.properties文件

您需要手动输入代理密码的地方.

where you need to enter your proxy password manually.

systemProp.http.proxyPassword=xxxxx
systemProp.http.proxyHost=xxxxx
systemProp.https.proxyPort=xxxx
systemProp.https.proxyUser=xxxxx
systemProp.https.proxyHost=xxxxx
systemProp.https.proxyPassword=xxxxx
systemProp.http.proxyPort=xxxx
systemProp.http.proxyUser=xxxxx

这篇关于Android Studio:需要407代理身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 08:42