Android setup for Katalon

Dear Team,


Kindly help in priority basis.As my team has trailed several ways,still they are facing problem while setting up android in windows.It is showing in original error-'couldnot find a driver for automation name uiautomator2 and platform name android.But as I have checked uiautomator2 driver has installed along with Platform name Android.
Please find attached screeshot for reference and kindly help.Thanks in advance

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

Hi @debiprasad.samantara,

Thank you for sharing your issue. I have found a similar discussion with a solution here: http://forum.katalon.com/t/katalon-return-error-could-not-find-a-driver-for-automationname-uiautomator2-and-platformname-android/119663/8?u=elly_tran. Please take a look

Unable to open this link

:police_car_light: PRIORITY ISSUE ANALYSIS

Based on your screenshots and error message, I’ve identified the root cause of your issue:

Problem Summary

Error: “Could not find a driver for automationName ‘uiautomator2’ and platformName ‘android’”

Root Cause: The UIAutomator2 driver installation is incomplete or corrupted due to an NPM registry timeout during installation. Your command line shows:

npm error EIDELIIMEOUT - Idle timeout reached for host `registry.npmjs.org:443`

This means the NPM package installation was interrupted before completion, even though it appears to show “successfully installed.”


:white_check_mark: IMMEDIATE SOLUTIONS (Priority Order)

Solution 1: Complete Appium Reinstallation (RECOMMENDED - Do This First)

Step 1: Uninstall Appium completely

npm uninstall -g appium
npm uninstall -g appium-uiautomator2-driver
npm cache clean --force

Step 2: Verify Appium is removed

appium driver list --installed

You should see: No drivers installed

Step 3: Reinstall Appium with UIAutomator2 driver

npm install -g appium
appium driver install uiautomator2

Step 4: Verify installation

appium driver list --installed

You should see:

✔ uiautomator2@x.x.x

Step 5: Configure Katalon Studio

  1. Go to Preferences > Katalon > Mobile
  2. Set Appium Directory to: C:\npm\node_modules\appium
  3. Click Apply and Close

Solution 2: Fix NPM Registry Timeout (If Solution 1 Fails)

The timeout error suggests your NPM registry connection is slow. Try:

npm config set registry https://registry.npmjs.org/
npm config set fetch-timeout 120000
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000

Then retry Solution 1.


Solution 3: Verify Desired Capabilities Configuration

After reinstalling Appium, ensure your test case has correct desired capabilities:

Source: Set up Desired Capabilities in Mobile Testing

  1. Go to Project > Settings > Desired Capabilities > Android
  2. Select your device from Device Name dropdown
  3. Verify these capabilities are set:
Name Type Value
automationName string UiAutomator2
platformName string Android
appPackage string com.your.app.package
appActivity string com.your.app.MainActivity

Solution 4: Check Appium Directory Path

Source: How to resolve “No Driver Found” error

  1. Go to Preferences > Katalon > Mobile
  2. Verify Appium Directory is set to: C:\npm\node_modules\appium
  3. NOT C:\Users\ADI\AppData\Roaming\npm\node_modules\appium (this is often incorrect on Windows)

Solution 5: Kill Existing Appium Processes

Sometimes old Appium processes block new installations:

# Open Task Manager and kill any running "node.exe" processes
# Or use command line:
taskkill /F /IM node.exe

Then restart Katalon Studio and try again.


:clipboard: Verification Checklist

After applying solutions, verify:

  • :white_check_mark: appium driver list --installed shows uiautomator2
  • :white_check_mark: Appium Directory in Katalon points to correct path
  • :white_check_mark: Desired Capabilities include automationName: UiAutomator2
  • :white_check_mark: Android emulator is running and visible in device list
  • :white_check_mark: No node.exe processes running in background

:wrench: If Still Failing

If the error persists after all solutions:

  1. Check your Node.js version: node --version (should be 14.x or higher)
  2. Reinstall Node.js in a location with full Read/Write permissions (not Program Files)
  3. Run Katalon Studio as Administrator
  4. Clear Katalon cache: Delete %APPDATA%\Katalon\ folder and restart

I am sorry for the inconvenience, our team is resolving this.

1 Like

Hi @archana.tikole,

Please help reach out this link for working: Katalon return error (Could not find a driver for automationName 'uiautomator2' and platformName 'android') - #6 by salim.oncu

1 Like