Intellij idea says Java Home is Different

前端 未结 6 522
感动是毒
感动是毒 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 09:52

    Be sure to check and correct JDK version in these 3 places:

    1. Check Preferences -> Build,... -> Build Tools -> Gradle -> Gradle JVM:
    2. Check Project Structure -> Project Settings -> Project -> Project SDK:
    3. Check Project Structure -> Platform Settings -> SDKs:

    Fixing gradle.properties is a dirty workaround. Better fix this at the IDE level.

提交回复
热议问题