you can override your Default JDK from File > New Project Setup > Setting for new project > Build, Execution, Deployment > Build Tools > Gradle and chagne the Default Gradle JDK.
FYI: https://issuetracker.google.com/issues/214428183#comment10