The newly created daemon process has a different context than expected.
It won\'t be possible to reconnect to this daemon. Context mismatch:
Java home is different.
Though I did not find the root cause where the different javaHomes have been taken from, at least I found a workaround that worked for me:
Try setting the following in your gradle.properties
(either in $HOME/.gradle/
or in your project build dir):
org.gradle.java.home=/usr/lib/jvm/java-8-openjdk-amd64