Intellij idea says Java Home is Different

前端 未结 6 525
感动是毒
感动是毒 2020-12-13 09:16

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.

6条回答
  •  既然无缘
    2020-12-13 10:09

    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
    

提交回复
热议问题