Open jdneo opened 1 year ago
Please go fixing it :) You probably can follow below:
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/Users/sheche/.sdkman/candidates/java/8.0.372-zulu,daemonRegistryDir=/Users/sheche/.gradle/daemon,pid=79226,idleTimeout=null,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=utf8,-Duser.country=CN,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=7bf45064-7e54-403d-8966-fb34bbe84800,javaHome=/Users/sheche/.sdkman/candidates/java/8.0.372-zulu/zulu-8.jdk/Contents/Home,daemonRegistryDir=/Users/sheche/.gradle/daemon,pid=79250,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=utf8,-Duser.country=CN,-Duser.language=en,-Duser.variant]
In SDKMan, the symlinks are correctly created, pointing to ./Content/Home
subfolders.
Looks like it's the issue of Gradle Daemon's java home check.
If the Gradle Java Home is set to
/Users/sheche/.sdkman/candidates/java/8.0.372-zulu
, the project import will fail due to: