- JDK (Java Development Kit)
- Android Studio
Windows | Mac |
---|---|
Microsoft® Windows® 10 (64-bit) or newer | macOS 10.15 (Catalina) or newer |
Minimum RAM of 4GB, recommended RAM of 8GB; Add 2 GB for Android Emulator or use your phone to run the project | Minimum RAM of 4GB, recommended RAM of 8GB; Add 2 GB for Android Emulator or use your phone to run the project |
Minimum available disk space of 8GB | Minimum available disk space of 8GB |
8GB recommended (1GB for IDE + 3GB for Android SDK and system image emulator) | 8GB recommended (1GB for IDE + 3GB for Android SDK and system image emulator) |
You can download the JDK for free from Oracle's website.
- Click the Download button under the JDK for the latest Java SE version.
- Accept the License Agreement.
- Choose the JDK for your operating system.
- From either the Downloads window of the browser or from the file browser, double-click the
.dmg
file to launch the install file. - A Finder window appears with an icon of an open box and the name of the
.pkg
file. - Double-click the package icon to launch the installation app and follow the prompts.
- You might need to enter the administrator password to continue.
- After the installation is complete, feel free to delete the
.dmg
file to save space.
- Run the downloaded installer (for example,
jdk-21_windows-x64_bin.exe
), which installs both the JDK and the JRE. By default, the JDK is installed inC:\Program Files\Java\jdk-21
directory. - Accept the defaults and follow the on-screen instructions to install the JDK.
- Open Control Panel > System > Advanced system settings > Environment Variables.
- Under System variables, click New and add a variable named
JAVA_HOME
with the JDK's directory as the value. For example,C:\Program Files\Java\jdk-21
. - Under System variables, scroll down to select Path, then click Edit.
- Add the JDK's
bin
directory to the end of thePath
, preceded by a semicolon. For example,;C:\Program Files\Java\jdk-21\bin
.
To verify that the JDK was installed correctly, open a terminal (Command Prompt on Windows or Terminal on Mac) and type the following commands: java java -version javac -version Windows users: If you receive an error from either command, confirm you've added the correct paths for the JDK.
- Download Android Studio from Android Developer's website.
- Follow the installation instructions provided on the website to complete the setup. With these steps, you should have a working setup for Android development with the latest tools and updates for 2024.