I could able to launch the app using appium desktop but not using Java program. I am using latest version of Android studio. appium-doctor is working fine, adb devices is working fine. Is there any issue with latest Android Studio ?
Error stack trace UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not find ‘adb’ in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT environment variables to the corect Android SDK root directory path.
at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)
This path /usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js means you installed node.js incorrectly. The node_modules directory should be located within a nodejs directory within usr/local/lib directory.
I recommend that you uninstall node.js and then install it manually (download compressed tarball and extract its contents to /usr/local/lib/nodejs, which you must create). For instance:
Make sure you set the environment variables in the file .bash_profile. The file .profile corresponds to Linux, and I do not know if macOS sources this specific version.
I’ve set up Appium on both OSes and I previously pointed you to the wrong file.
Hi Cesarv, I got issue resolved by setting the ANDROID_HOME path in eclipse. By setting environment variables in .profile in MAC the app started working.