模拟器:模拟器:警告:无法通过:: 1:8080连接到代理:未知错误! - 安卓 [英] Emulator: emulator: WARNING: Could not connect to proxy at ::1:8080: Unknown error ! - Android

查看:297
本文介绍了模拟器:模拟器:警告:无法通过:: 1:8080连接到代理:未知错误! - 安卓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仿真器:仿真器:警告:无法在:: 1:8080连接到代理:未知错误! -Android

Emulator: emulator: WARNING: Could not connect to proxy at ::1:8080: Unknown error ! - Android

Android Studio 2.3.2更新为Android Studio 3.0 canary 2后,出现此错误.由于此错误,Internet无法在仿真器中工作.

I am getting this error after updating Android Studio 2.3.2 to Android Studio 3.0 canary 2. Because of this error Internet not working in the emulator.

修改

我正在通过LAN连接在Windows 7上使用Android Studio.

I am using Android Studio on Windows 7 over LAN connection.

更新 虽然,这不是解决方案,但我将Android Studio降级为2.3.3,并卸载了android仿真器,然后再次重新安装.现在一切正常.

UPDATE Though, It is not the solution but I downgraded the Android Studio to 2.3.3 and uninstalled the android emulator and reinstalled again. Now it is working fine.

推荐答案

请提供更多详细信息..例如,您正在使用哪种类型的连接或您的操作系统是什么.如果您使用的是代理网络,请尝试更改文件"->设置"中的设置.设置-> HTTP代理.如果那不起作用,请看这里

Kindly give more details ..like what type of connection you are using or what is your os. If you are on a proxy network try changing the settings in File -> Settings-> HTTP proxy. If that doesn't work look here

AndroidStudio gradle代理 https://docs.gradle.org/current/userguide/userguide_single. html#sec%3aaccessing_the_web_via_a_proxy

通过标准JVM系统属性来配置HTTP或HTTPS代理(例如,用于下载依赖项).这些属性可以直接在构建脚本中设置.例如,将使用System.setProperty('http.proxyHost','www.somehost.org')完成HTTP代理主机的设置.另外,可以在gradle.properties文件中指定属性,该文件可以在构建的根目录中或在Gradle主目录中.

Configuring an HTTP or HTTPS proxy (for downloading dependencies, for example) is done via standard JVM system properties. These properties can be set directly in the build script; for example, setting the HTTP proxy host would be done with System.setProperty('http.proxyHost', 'www.somehost.org'). Alternatively, the properties can be specified in a gradle.properties file, either in the build's root directory or in the Gradle home directory.

示例12.2.配置HTTP代理

gradle.properties

systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

HTTPS有单独的设置.

There are separate settings for HTTPS.

示例12.3.配置HTTPS代理

gradle.properties

systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

这篇关于模拟器:模拟器:警告:无法通过:: 1:8080连接到代理:未知错误! - 安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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