Specify a path to Android SDK root folder

Requirements

  • Katalon Studio version 8.1.0 onwards
  • Katalon Runtime Engine version 8.1.0 onwards

You can use a custom Android SDK location instead of the Katalon Studio default location. From version 8.1.0 onwards, Katalon Runtime Engine supports the ANDROID_HOME environment variable to specify a path to Android SDK root folder. To learn more about environment variables, see Command arguments.

Specify a path to Android SDK root folder

By default, the Android SDK root folder is located at ~/.katalon/tools/android_sdk. You can rename or move your Android SDK root folder to another location and use the ANDROID_HOME environment variable to point the path to that new location. See also: [Mobile] Android Setup.

Command-line Option

Start Katalon Studio with this command-line option instead of double-clicking on the Katalon app:

  • For Linux and macOS:

    $ export ANDROID_HOME=<Your Android SDK location>

    For example:

    $ export ANDROID_HOME=/opt/dev/android-sdk-linux
    $ ./katalon <arguments>
    
  • For Windows:

    1. In the Windows explorer search bar, search for Edit the system environment variables.

    Edit the system environment variable

    The System Properties dialog appears. Click Environment Variables.

    system properties

    2. In the System variables, click New to create a new environment variable like so:

    • Variable: ANDROID_HOME
    • Value: your custom path to the Android SDK root folder
    new Window Environment Variable

Notes:

For Appium to locate the tools, keep the ADB file and these folders as their original names:

  • build-tools
  • platform-tools
  • tools

Feedback