如何使用代理连接与android studio [英] how to use a proxy connection with android studio

查看:36
本文介绍了如何使用代理连接与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.

这篇关于如何使用代理连接与android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆