Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported

This error appears when trying to run Appium testing using C# on a Mac m1. The weird thing is that appium-doctor show that everything is correct, so not sure what to do.

(base) [email protected] appium-demo % echo $PATH

The bottom screenshot looks like it’s from an IDE. Appium Doctor can only tell you what’s available to the command line. If the IDE does not read the environment variables correctly from the command line, then you’ll have to look up the documentation for your IDE and figure out how to set them.