gpt4 book ai didi

android - 模拟器:模拟器:警告:无法连接到 proxy at::1:8080:未知错误! - 安卓

转载 作者:行者123 更新时间:2023-11-30 00:30:28 43 4
gpt4 key购买 nike

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 在模拟器中无法正常工作。

编辑

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

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

最佳答案

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

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

关于android - 模拟器:模拟器:警告:无法连接到 proxy at::1:8080:未知错误! - 安卓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44495574/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com