Updated:
Android Studio, along with the Java JDK (Java Development Kit) and SDK (Software Development Kit), forms the foundation of Android app development. In this guide, we’ll walk you through the process of downloading, installing, and setting up these essential tools.
Update (November 2026): you don’t need to install Java separately.
Modern versions of Android Studio come with their own JDK, called the JetBrains Runtime (JBR). It is installed automatically and Android Studio uses it to run the IDE and your Gradle builds. Just install Android Studio and let the Setup Wizard download the SDK. The manual Java JDK steps further down are only needed for special cases, such as running Gradle from your own terminal.
Which JDK does Android Studio use, and how do I change it?
To see or change the JDK used for your project, open File > Settings (on macOS: Android Studio > Settings) and go to Build, Execution, Deployment > Build Tools > Gradle. The Gradle JDK drop-down shows the JDK in use – normally the bundled JetBrains Runtime (jbr-…). From the same list you can pick another JDK or download one.
If you run gradlew from a terminal outside Android Studio, Gradle uses the JAVA_HOME environment variable instead. On Windows you can point it to the JDK that ships with Android Studio, usually C:\Program Files\Android\Android Studio\jbr, so the terminal and the IDE build with the same Java version.
What about the Android SDK?
The SDK is also installed for you: on first launch choose Standard in the Setup Wizard and it downloads the Android SDK, platform tools and the emulator. To add or update SDK versions later, open Tools > SDK Manager (or More Actions > SDK Manager on the Welcome screen).
When do you need a separate JDK?
For normal Android work inside Android Studio, never. A separate JDK is only useful when:
- you run
gradlewbuilds from a terminal or a CI server and wantJAVA_HOMEto point at a specific Java version; - you also write desktop or server Java programs on the same PC;
- a project’s documentation asks for a specific JDK version.
The Android Gradle plugin needs Java 17 or newer to run, and Android Studio’s bundled JetBrains Runtime already meets that (Google: Java versions in Android builds). If you do want your own JDK, install a current long-term-support release – JDK 25 is the latest LTS and JDK 21 the previous one – by following How to install Java JDK on Windows 11.
Java, Android Studio and the SDK in one minute
- JDK (Java Development Kit) – compiles and runs the Java and Kotlin tooling on your computer: Gradle and Android Studio itself run on it. It is not installed on phones or emulators.
- Android Studio – the official IDE (integrated development environment) for Android. It is built on IntelliJ IDEA and includes the editor, Gradle builds, the SDK Manager and the emulator.
- Android SDK – the Android platform libraries and tools: platform-tools (including
adb, which talks to phones and emulators), build-tools, the platform for each Android version and the Android Emulator.
Set up Android Studio, the JDK and the SDK on Windows (step by step)
- Check your PC. 64-bit Windows 10 or 11, 8 GB RAM (16 GB with the emulator) and 8–16 GB of free disk space.
- Download and install Android Studio from developer.android.com/studio. Our Android Studio download guide for Windows 11 walks through every installer screen.
- Run the Setup Wizard and choose Standard. It downloads the Android SDK, platform-tools and an emulator image. By default the SDK goes to
C:\Users\<you>\AppData\Local\Android\Sdk. - Confirm the Gradle JDK. Open File > Settings > Build, Execution, Deployment > Build Tools > Gradle and check that Gradle JDK is the bundled JetBrains Runtime (shown as jbr or GRADLE_LOCAL_JAVA_HOME).
- Optional – set JAVA_HOME if you build from a terminal. Point it at Android Studio’s runtime, normally
C:\Program Files\Android\Android Studio\jbr, so terminal builds and IDE builds use the same Java. - Create a project. Choose New Project > Empty Activity, keep Kotlin as the language and click Finish. The first Gradle sync takes a few minutes.
- Run the app on the emulator (create one in Device Manager) or on your phone: turn on Developer options > USB debugging, connect the cable and pick your phone in the device menu.
Video walkthrough
This video was recorded with an older version of Android Studio. The steps are the same; some screens look different.
Fix common JDK errors in Android Studio
“Android Gradle plugin requires Java 17 to run. You are currently using Java 11.”
Gradle is running on an old JDK. Set Gradle JDK back to the bundled jbr in the Gradle settings above, or point JAVA_HOME at a JDK 17 or newer if you build from a terminal.
“JAVA_HOME is not set” when running gradlew
Only terminal builds need it. Set JAVA_HOME to C:\Program Files\Android\Android Studio\jbr (or your own JDK folder), open a new terminal and run gradlew --version to check.
Builds work in Android Studio but fail in the terminal
The IDE and the terminal are using different JDKs. Compare the JVM line of gradlew --version with the Gradle JDK setting and make them the same.
FAQ
Do I need to install Java to use Android Studio?
No. Android Studio includes its own JDK (the JetBrains Runtime) and uses it to run Gradle by default.
Which JDK version should I use for Android development?
Use the one bundled with Android Studio. If you install your own, choose JDK 17 or newer; JDK 21 and JDK 25 are current long-term-support releases.
Where is the JDK inside Android Studio?
In the jbr folder of the installation, usually C:\Program Files\Android\Android Studio\jbr on Windows.
Can I write Android apps in Kotlin without installing Java?
Yes. Kotlin compiles with the same bundled JDK, so a fresh Android Studio install is enough.
You May Also Like:
- Kotlin tutorial for beginners.
- How To Make An Android App For Beginners
- Android Interview Questions For Fresher.
- Shimmer Effect Android Using Kotlin.
- Top 5 Things To Avoid While Developing Android Apps.
- 5 Best GitHub Repositories For Android Developer.
- 15 Best Useful Sites For Online Learning.
Related free tools
- App Icon Generator – every Android and iOS icon size from one image.
- JSON to Kotlin – generate data classes for your API responses.
- Gradle Version Catalog Generator – move dependencies to libs.versions.toml.
Keep reading


Thank you for the detailed guide! I found the step-by-step instructions very helpful, especially the troubleshooting tips for the JDK installation. It saved me a lot of time. Looking forward to more posts like this!