You can manually set JDK location for your project:
> File
> Project Structure
> JDK location box: enter and browse to your Java JDK.
Or, set JDK location for Android Studio:
> On Android Studio Welcome Page
> Configure
> Project Defaults
> Project Structure
> JDK location box: enter and browse to your Java JDK.