Katalon return error (Could not find a driver for automationName 'uiautomator2' and platformName 'android')

Guys, I solved the problem. As you know, we install Appium globally. When we install the drivers (uiautomator2) with npm on a Mac computer, it is written into the .appium/node_modules/.cash/appium/extensions.yaml file (not global). The problem here is that the extensions.yaml file under npm-global is empty. When I copy the contents of this file into the .npm-global/node_modules/.cash/appium/extensions.yaml file, it works fine.

You don’t need to set APPIUM_HOME if you don’t want to! By default, Appium will set APPIUM_HOME to the directory .appium in your user home directory.

These installed packages will be managed by extensions.yaml in $APPIUM_HOME/node_modules/.cache/appium/extensions.yaml.