问题
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