Skip to content

Latest commit

 

History

History
93 lines (59 loc) · 4.18 KB

File metadata and controls

93 lines (59 loc) · 4.18 KB

PREREQUISITES

Choose the operating system for instructions:

Windows Instructions

Windows Java 8+

Go to the download page for Java and download the installer for your platform. Once the downloader is installed, launch it and follow the prompts to install Java. You can find detailed steps on installing Java for Windows on the Java website page for Windows.

Windows JDK 8+

Go to the Oracle website download page for Windows and download the JDK installer. Once the JDK installer is downloaded, launch it and follow the prompts to install the JDK.

Windows JAVA_HOME

Below are the steps to set JAVA_HOME for Windows:

  1. Open "Edit the system environment variable"
  2. Click "New" to create new environment variable
    • variable name: JAVA_HOME
    • variable value: <jdk_install_path> (example: C:\Program Files\Java\jdk-17.0.2)
  3. Press "Ok" to save the changes
  4. re-open the command prompt for the environment variables to apply

Windows ANDROID_HOME

  1. Open "Edit the system environment variable"
  2. Click "New" to create new environment variable
    • variable name: ANDROID_HOME
    • variable value: <android_sdk_path> (example: C:\Users\YourUsername\AppData\Local\Android\Sdk)
  3. Press "Ok" to save the changes
  4. Re-open the command prompt for the environment variables to apply

macOS Instructions

macOS Java 8+

Go to the download page for Java and download the installer for your platform. Once the downloader is installed, launch it and follow the prompts to install Java. You can find detailed steps on installing Java for macOS on the Java website page for macOS.

macOS JDK 8+

Go to the Oracle website download page for macOS and download the JDK dmg file following the instructions on the Installing the JDK on macOS section. Once the JDK dmg is downloaded, launch it and follow the prompts to install the JDK.

macOS JAVA_HOME

Below are the steps to set JAVA_HOME for macOS:

export JAVA_HOME=<jdk_install_path>

, where <jdk_install_path> must be replaced with the JAVA SDK installation directory (for example, /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home).

macOS ANDROID_HOME

Run the following command to set the ANDROID_HOME environment variable:

export ANDROID_HOME=<android_sdk_path>

, where <android_sdk_path> must be replaced with the Android SDK installation directory (for example, /Users/YourUsername/Library/Android/sdk).

Linux Instructions

Linux Java 8+

Go to the download page for Java and download the installer for your platform. Once the downloader is installed, launch it and follow the prompts to install Java. You can find detailed steps on installing Java for Linux on the Java website page for Linux.

Linux JDK 8+

Go to the Oracle website download page for Linux and follow the download and install instructions for your Linux operating system.

Linux JAVA_HOME

Below are the steps to set JAVA_HOME for Linux:

export JAVA_HOME=<jdk_install_path>

, where <jdk_install_path> must be replaced with the JAVA SDK installation directory (for example, /usr/lib/jvm/jdk-17.jdk).

Linux ANDROID_HOME

Run the following command to set the ANDROID_HOME environment variable:

export ANDROID_HOME=<android_sdk_path>

, where <android_sdk_path> must be replaced with the Android SDK installation directory (for example, /home/YourUsername/Library/Android/sdk).