Gradle Sync Error

Hi,

I am facing an issue while any project starts in cuba studio.
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.
Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Files\Java\jdk1.8.0_201,daemonRegistryDir=C:\Gradle\gradle-4.6\bin\daemon,pid=1144,idleTimeout=null,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=745d04d7-c715-4be9-a1db-1d166462b761,javaHome=C:\Program Files\Java\jdk1.8.0_201\jre,daemonRegistryDir=C:\Gradle\gradle-4.6\bin\daemon,pid=6040,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]

All the path variables and java_home environment variables are point to jdk
folder, i have tried multiple restarts and re-installation of cuba studio
In the cuba studio the project sdk is set to jdk path correctly.

I even tried setting the path for java home in settings.gradle as well
org.gradle.java.home=“C:\Program Files\Java\jdk1.8.0_201”
still it doesn’t work

Still some how it seems to find it as C:\Program Files\Java\jdk1.8.0_201\jre
I am not sure why this is happening
Please assist

java_home path jvm_setting context
Regards,
Aruna

Hi,
This error does not directly relate to CUBA or Studio.

Have you tried solutions from the internet?
Like several presented here: java - IntelliJ Build Error Context Mismatch - Stack Overflow

Hi Alex,

Thanks for the response
I tried the options mentioned in this link before , and only then Iposted here.
None of the options mentioned in the Internet seems to be working for me.
Hence i thought would ask if anyone else here would have faced a similar issue.

Regards,
Aruna