如何使用代理连接与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>

我该如何修复该错误?



 1 条回答