I am getting the below error message:
An unknown server-side error occurred while processing the command.
Original error: Could not find adb Please set the ANDROID_HOME
environment variable with the Android SDK root directory path.
(Selenium::WebDriver::Error::UnknownError)
I have setup all the below:
info AppiumDoctor Appium Doctor v.1.4.2
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor ✔ The Node.js binary was found
at:/usr/local/bin/node
info AppiumDoctor ✔ Node version is 7.10.0
info AppiumDoctor ✔ ANDROID_HOME is set to:
/Users/shafiq.malik/Library/Android/sdk
info AppiumDoctor ✔ JAVA_HOME is set to: /Library/Java/Home
info AppiumDoctor ✔ adb exists at:
/Users/shafiq.malik/Library/Android/sdk/platform-tools/adb
info AppiumDoctor ✔ android exists at:
/Users/shafiq.malik/Library/Android/sdk/tools/android
info AppiumDoctor ✔ emulator exists at:
/Users/shafiq.malik/Library/Android/sdk/tools/emulator
info AppiumDoctor ✔ Bin directory of $JAVA_HOME is set
info AppiumDoctor ### Diagnostic completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor
I am not sure what I am missing. Can somebody please advise?
You need to add the path to the android-sdk to ANDROID_HOME environment variable. e.g. C:\installation-location\android-sdk
or /opt/intallation-location/android-sdk
In Windows 8 & 10:
In Linux:
/etc/environment
file.export ANDROID_HOME="/opt/intallation-location/android-sdk"
For Windows 10:
Right-click on 'My Computer' and select 'Properties'. Then select 'Advance System Settings' from Left Panel. Select 'Environment Variables' from new pop-up window.
Add variable 'ANDROID_HOME' with value of 'C:\Program Files (x86)\Android\android-sdk'.
Close all the windows and restart the Appium. (Important)
It works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With