Setting up Appium configuration on windows / Mac

Khemlall Mangal
4 min readApr 26, 2022

--

Alright guys, i am going to put some snippet here on my blog on how to get started with Automating mobile apps using Appium. I will start with the setup and what you will need on your system to get started.

You will need Nodejs, to run appium server. So you will need to install Nodejs.

a) you will need Java, android studio, nodejs, eclipse editor

Download Java SDK and install on your machine.

Now install Android studio which will have get the andriod jdk etc.
Keep note of your sdk and jdk path

Click accept and continue.

Install Nodejs — in order to run your appium server you need to have NODE js so you can start your server. The appium server is written on the node platform.

Go to Google and search node install -> DOWNLOAD the msi version.

Follow instructions and complete installation.

Ensure you setup Java path in your windows Machine:

Type — Edit the environment variable you will need to add your system variable path

ADDING SDK path to your environment variable settings on windows

  1. Launch android studio after you have completed the installation. First time you will be asked to import android studio settings just select do not import and proceed

2. select your themes and proceed

Make a Note of your current settings on the next screen -> you will need it

After installation let set the environment variable for sdk

C:\Users\User\AppData\Local\Android

Open your android studio and let's create an application by following the various prompts. Go to tool -> SDK manager and select SDK tools tab and uncheck hide packages and select Android SDK tools.

Once you have completed the selection you can continue and it will install the tools.

Ok Guy, there is going to be a few things you may encounter. If you are using a version of Java JDK higher than 8, chances are that uiautomator may not work. you may get this issue:

ui automator viewer -Djava.ext.dirs=..\lib\x86_64;..\lib is not supported.
  1. Issue launching your UI Automator viewer. If you have java version greater than 11, you will run into issue.
    Install 8.0 version of Java JDK
    Open android sdk location and find uiautomatorview.bat file. Edit it to point to the jdk1.8.0_33 version.

For Windows systems, find the line

set java_exe=call ..\lib\find_java.bat

Update that to:

set java_exe=C:\Program Files\Java\jdk1.8.0_271\bin\java.exe

In this way, you don’t need to update the JAVA_HOME variable which has a higher jdk version(useful for other programs).

--

--

Khemlall Mangal
Khemlall Mangal

Written by Khemlall Mangal

I am a passionate coder, QA Engineer, and someone who enjoys the outdoors.

No responses yet