java 删除以前的代理,如何删除JVM属性“https.proxyHost”?

当用户从系统和Android Studio中删除了HTTP代理设置后,仍然遇到JVM属性'https.proxyHost'设置导致的错误,阻碍了Gradle文件的构建和同步。解决方法是在JAVA_OPTS中添加-DsocksProxyPort参数来移除HTTP代理端口,从而正常进行编译和同步。
摘要由CSDN通过智能技术生成

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:

You have JVM property "https.proxyHost" set to .... This may lead to

incorrect behavior. Proxy should be set in Settings|HTTP Proxy

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"

for removing http proxy ports

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值