异常现象描述:
在给Android Studio 2.2设置代理时,出现警告信息:
You have JVM property "socksProxyHost" 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.)
如下图示:
解决方案:
重启电脑即可
解决方案链接:
http://geekhades.blogspot.jp/2016/01/you-have-jvm-property-httpsproxyhost.html
补充(2016-09-27):
异常发生原因:ss设置全局模式导致。因此,关闭ss 或者 将其设置为 自动代理模式 即可解决该异常。
更深层次原因待进一步分析。
注:其他解决方案(如下两种方案在我的异常场景中均未解决问题):
(1)在Android Studio中选择 File --> Invalidate Caches and Restart ; http://stackoverflow.com/questions/33933974/android-studio-proxy-setting
(2)如果有其它IDE(如Eclipse),则看看其它IDE是否有设置代理,如果有,将其设置为 Direct; http://blog.xinspace.space/2016/04/01/%E8%A7%A3%E5%86%B3Android-Studio-HTTP%E7%BD%91%E7%BB%9C%E4%BB%A3%E7%90%86%E9%94%99%E8%AF%AF%E6%8F%90%E7%A4%BA/