How to install and set SDK and JDK as system variables - DnavaIC/STD-Automation-testing-icsecurity GitHub Wiki

Setup SDK

  1. Install Android studio

  2. Open Android studio and search for SDK Manager. More actions > SDK Manager

  3. Copy the path to your SDK

image image

  1. In windows search for “Environment variables”.

And go to Advanced options > Environment variables > New…

  1. Create a new variable with the name: ANDROID_HOME and set your path:

    C:\Users<your username>\AppData\Local\Android\Sdk\platform-tools

image

Setup JDK

  1. Now lets download java developers kit binary archive —> https://download.oracle.com/java/23/latest/jdk-23_windows-x64_bin.zip
  2. Create a new folder in your windows main root and unzip the JDK
  3. navigate to the bin folder, which is inside JDK and copy the path
  4. As we do with Android_home (SDK), create a new envirnomnet variable called JAVA_HOME
C:\java\jdk-23.0.2\bin

image

  1. The last step is pretty simple, inside your system variables open “path” and add both paths, SDK and JDK

image

ADB

Show your devices (Emulated and hardware)

adb devices