java.io.IOException: Unable to establish loopback connection

孤者浪人 提交于 2021-01-05 07:39:36

问题


I get this java exception when i build android in CMD and i don't catch why and how to figure this out.

The exception is:

java.io.IOException: Unable to establish loopback connection

What can I do ? (ionic 2 building android windows 10 Home 64 bit)


回答1:


Put the options in the _JAVA_OPTIONS environment variable.

For example, on Linux, put the following in your ~/.profile or ~/.bash_profile:

export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true"

Windows:

set _JAVA_OPTIONS=-Djava.net.preferIPv4Stack=true


来源:https://stackoverflow.com/questions/42547714/java-io-ioexception-unable-to-establish-loopback-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!