Download the latest version from the Oracle Java Downloads page .
During installation, the wizard will help you download the necessary Android SDK components automatically. Step 3: Configure Your Environment download java android
Ensure your Project Structure in Android Studio points to the correct JDK path. Download the latest version from the Oracle Java