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

108 阅读1分钟
  • 安装了新版本的 Android Studio: https.proxyHost 警告

    警告位置在:Android Studio -> Settings -> System Settings -> HTTP Proxy

    You have JVM property "https.proxyHost" set to "127.0.0.1".
    This may lead to incorrect behaviour. Proxy should be set in Settings | HTTP Proxy
    This JVM property is old and its usage is not recommended by Oracle.
    (Note. It could have been assigned by some code dynamically.)
    

    image.png

  • 解决方案

    找到菜单:Help -> Edit Custom VM Options,将下面内容贴进去保存,并重启 Android Studio 就解决了。

     -Dhttp.proxyHost
     -Dhttp.proxyPort
     -Dhttps.proxyHost
     -Dhttps.proxyPort
     -DsocksProxyHost
     -DsocksProxyPort
    

    image.png