[GRADLE-3194] Cannot start Gradle daemon on OS X and Java 7 when offline Created: 13/Nov/14 Updated: 16/Nov/14 Resolved: 14/Nov/14
|Known Issue Of:|
When I use java7 (1.7.0_67) and I switch off wifi (or when I'm not connected to any wifi network) I'm not able to run build with the daemon on my mac (Mac OS X 10.9.5 x86_64). This problem also impacts android developers as reported on the mailing list. It might be related to the fact that I'm using a corporate laptop which has some non-standard network/vpn settings. I don't see this problem with java6 or java8. In the code, the InetAddress.getLocalHost() throws an exception.
Starting the build yields:
Steps to reproduce: turn off wifi, use java7 on mac, try running a build with the daemon.
When I was traveling and did not have wifi last weekend I used java8 to work around the issue. Full stack trace: https://gist.github.com/szczepiq/e0c455d8a60f71381c83
I've hacked the code to ignore the exception coming from InetAddress.getLocalHost() and this made the build happy.