Setting up Java, Android Studio and Node for Appium — Mac OS

Tharaka Liyanage
5 min readNov 23, 2021

--

Hi there..👋 Are you a Mac user and struggling on setting up pre-requisites need for Appium in your Mac ? Ta da….🤗 Then this blog is for you.

Before moving on, if you are still new to Appium, you can check my previous blog on Appium Architecture from here.

Let’s configure required pre configurations step by step..

1. Download Java from here

  • You will see different available Java versions (eg. Java SE 17, 11, 8..)
  • Select specific JDK* based on your requirements
  • I will download JDK 11 from here as it’s more famous and stable one
  • Select the JDK based on your OS*
  • For Mac , select correct “.dmg” file
  • Click on the “.dmg” link in Download column
  • You will see Java download dialog box as below
  • Select the option “Accept License Agreement”, and click on “ Download jdk-osx-x64_bin.dmg”.

JDK : JDK is a development environment for building applications and components using the Java programming language.
OS : Operating System

Note : If you do not have a Oracle account you can simply download jdk from here

2. Install Java JDK on your Mac

  • Double-click on the JDK installer “jdk-11.0.13_osx-x64_bin.dmg” file and open it .
  • Double click on “.pkg” and you will see the installer’s Welcome screen.
    Click on “Continue”
  • Click on “Install”
  • You will see below window once installation is completed.
    Click on “close” button.

3. Download Android Studio from here

  • Click on “Download Android Studio
  • Select the option “I have read and agree with the above terms and conditions”, and click on button Mac with intel chip to download to download “.dmg” for your Mac

Why we need Android Studio ?
To work with Android App, we need Android SDK and this Android SDK comes as in-built package in Android Studio.

4. Install Android Studio

  • Double click on the successfully downloaded .dmg file “android-studio-2020.3.1.25-mac.dmg” to open the file and drag into the Applications folder as below.
  • Open the Android studio by tapping on the it
  • Select option “Do not import settings” and click on “OK
  • Tap on “Next” from the Welcome screen
  • Select option “Standard” and click on “Next
  • Select your preferred UI theme and click on “Next
  • Click on “Finish
    In this window you can see all the built-in components you will get once you set up the Android Studio successfully.
    eg. Android Emulator
  • Wait until the downloads get completed. It will take some time to download all build tools.
  • Once all components downloaded, Click on “Finish”

👏 Good Job.. You have successfully installed Android Studio in your Mac machine

4. Download Node from here

Based on your system configuration select 32-bit or 64-bit Mac installer (.pkg)

  • Double click on the downloaded file and you will see the Node installer’s Welcome screen.

This will install Node.js and npm where the path mentioned in the Welcome Screen

Click on “Continue

  • Click on “Continue” from below screen
  • Click on “Agree” to accept software licence agreement
  • Select “Install” to continue Node installation
  • Once installation is completed Click on “Close

💪 you have successfully installed Node in your Mac..

Why we need Node for Appium ?

In order to execute your Appium test cases, you need to root all your tests to Appium server and this Appium server is completely retain on the Node platform. Hence to install Appium server you should install Node in your machine as a pre-requisite.

Hope you were able to successfully install Java, Android Studio and Node.js in your Mac.

See you in the next blog.. ✍✌

--

--