Hello community
I’m working with Appium C# in MacOS environment but when I try run my current code for Android device had as result “Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported.Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported.”
I verified that environment variables have set correctly and those are correctly set, when I run echo $ANDROID_HOME return me the correct value:
/Users/admin/Library/Android/sdk
I verified too in Visual Studio the configuration and set in Tools - Preferences - SDK Locations - Android and verify in Tools - Preferences - Tools for Unity - General and put the path of Android Studio in the option ‘Preferred Android SDK root’
Specific Error:
OpenQA.Selenium.WebDriverException : 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
Versions
MacOS Ventura: 13.5
Visual Studio 17.6.3
Android Studio 2022.3.1 Giraffe
I hope someone can help me, thank you