[ERROR] Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported

Hello everyone,

I just got
The error below when trying to run tests on my application. I’ve checked the environment variables and they are properly set, and I also ran appium-doctor and no error was detected. Can someone help me? I’ve tried multiple tutorials but nothing solved my issue. :frowning:

WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:1073:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:491:57)

Is it resolved?