如何删除JVM属性“https.proxyHost”? [英] How to remove JVM property "https.proxyHost"?
问题描述
出于某种目的,我在我的系统上使用代理。但是现在我的系统上没有任何代理设置以及Android Studio代理设置我已经删除了代理并将其设置为无代理。
I was using proxy on my system for some purpose. But now I don't have any proxy set on my system as well as from the Android Studio proxy settings I have removed the proxy and set it to no proxy.
但是我一直收到以下错误:
But I keep getting the following error:
您将JVM属性https.proxyHost设置为....这可能导致
行为不正确。代理应该在设置| HTTP代理
You have JVM property "https.proxyHost" set to .... This may lead to incorrect behavior. Proxy should be set in Settings|HTTP Proxy
当我尝试构建/同步没有代理服务器的Gradle文件时,文件也没有没有编译,并说请检查我的网络连接,我有互联网连接。
As well when I try to build/sync the Gradle file without proxy server the files doesn't get compiled and says please check your network connection where I have internet connection.
推荐答案
如果有人仍在寻找解决方案同样,这对我有用
If anyone still looking for the solution to the same, here is what worked for me
JAVA_OPTS="$JAVA_OPTS -DsocksProxtPort"
用于删除http代理端口
for removing http proxy ports
这篇关于如何删除JVM属性“https.proxyHost”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!