How to install and set SDK and JDK as system variables - DnavaIC/STD-Automation-testing-icsecurity GitHub Wiki
Setup SDK
-
Install Android studio
-
Open Android studio and search for SDK Manager. More actions > SDK Manager
-
Copy the path to your SDK
- In windows search for “Environment variables”.
And go to Advanced options > Environment variables > New…
-
Create a new variable with the name: ANDROID_HOME and set your path:
C:\Users<your username>\AppData\Local\Android\Sdk\platform-tools
Setup JDK
- Now lets download java developers kit binary archive —> https://download.oracle.com/java/23/latest/jdk-23_windows-x64_bin.zip
- Create a new folder in your windows main root and unzip the JDK
- navigate to the bin folder, which is inside JDK and copy the path
- As we do with Android_home (SDK), create a new envirnomnet variable called JAVA_HOME
C:\java\jdk-23.0.2\bin
- The last step is pretty simple, inside your system variables open “path” and add both paths, SDK and JDK
ADB
Show your devices (Emulated and hardware)
adb devices