I have tried a few things including changing JDK_HOME to the current JDK, removing all jdk and installing jdk8, and reinstalling android studio, but the same issue persists.