如何使用代理连接与android studio

如何使用代理连接与android studio

问题描述:

我正在尝试在 android studio 中运行hello world"应用程序.我的连接是通过代理进行的.当我尝试运行hello world app"时,android studio 显示下一个错误:

I'm trying to run a "hello world" application in android studio. My connection is via proxy. When I try run the "hello world app", android studio show me the next error:

运行 Prueba 时出错:Gradle 项目同步失败.请修复您的项目,然后重试.

Error running Prueba: Gradle project sync failed. Please fix your project and try again.

如果我在:File/setting -> HTTP Proxy"中进行配置,然后放置我的代理配置,则错误如下:

If I configure in: "File/setting -> HTTP Proxy" and next put my proxy configuration, the error is the next:

错误:无法获取 'http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'.从服务器收到状态代码 407:需要代理身份验证(ISA 服务器需要授权才能完成请求.对 Web 代理筛选器的访问被拒绝.)<a href="toggle.offline.mode">启用 Gradle离线模式"并同步项目</a>

Error:Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom'. Received status code 407 from server: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ) <a href="toggle.offline.mode">Enable Gradle 'offline mode' and sync project</a>

我该如何修复该错误?

出现错误提示需要代理认证.要对您的代理服务器进行身份验证,请返回文件->设置->HTTP 代理,选中代理身份验证框并在那里输入您的凭据.另外,单击检查连接按钮以测试您的连接是否成功.

There error indicates that proxy authentication is needed. To authenticate to your proxy server go back to File->Setting->HTTP Proxy, check the box for Proxy authentication and enter your credentials there. Also, click the check connection button to test that your connection is successful.