It already comes with a default java directory in / usr / lib / jvm /
but can not find jdk in any folder within this directory
You can go to file> project structure and manually add a JDK.