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

时光毁灭记忆、已成空白 提交于 2019-12-08 03:58:27

问题


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

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.

Edit

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

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.


回答1:


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 proxy https://docs.gradle.org/current/userguide/userguide_single.html#sec%3aaccessing_the_web_via_a_proxy

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.

Example 12.2. Configuring an HTTP proxy

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

There are separate settings for HTTPS.

Example 12.3. Configuring an HTTPS proxy

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


来源:https://stackoverflow.com/questions/44495574/emulator-emulator-warning-could-not-connect-to-proxy-at-18080-unknown-err

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!