android - 如何使用与android studio的代理连接

标签 android android-studio proxy proxy-authentication

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

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

如果我在“文件/设置 -> HTTP 代理”中进行配置,然后进行代理配置,则错误如下:

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 代理,选中代理身份验证框并在此处输入您的凭据。此外,单击检查连接按钮以测试您的连接是否成功。

关于android - 如何使用与android studio的代理连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26916951/

相关文章:

java - 使用 Netty 创建一对多的 TCP 代理

android - 如何在 WebView Android 应用程序中禁用 Google Adsense?

c# - 将 metresc 距离添加到 Long/Lat e6

android - 在 Android 中执行从文件到 SQLite 数据库的查询?

java - 如何单击 AutocompleteTextView 列表上的事件并查询 sqlite。(我有一个示例代码。)

通过代理进行基本身份验证的 Python HTTPS 客户端

java - ListView 中的微调器(android)

android - Gradle DSL 方法未找到 : "classpath()"

android - 在 Android Studio 中更改 xml 布局文件后需要重建

javascript - 有没有可靠的方法来获取用户的 IP,尽管他们在代理或类似的后面?