I was facing the same issue on Windows, the issue was not really about the IDE. It was about the JAVA JDK was not installed properly, check following link:
https://www.youtube.com/watch?v=SQykK40fFds&ab_channel=GeekyScript