I am getting this exception how to solve this error ?
java.net.UnknownHostException: Invalid hostname for server: local
Because localhost is coming so should try host name with a ip 10.0.2.1
According to the javadocs: IP address of a host could not be determined.
if that local is a server on your network so you should add it to your host file and in DNS setting also.