I think you should set JDK location for JDK which matches your system's version.
Maybe this question will help you: How to set Java SDK path in AndroidStudio?