
Original error: Could not find ‘adb’ in PATH. Original error: An unknown server-side error occurred while processing the command. Please check the server log for more details.

withAppiumJS(new File("/home/linuxbrew/.linuxbrew/lib/node_modules/appium/build/lib/main.js")) usingDriverExecutable(new File("/usr/bin/node")) Note: u can call adb command from any where which mean path is set correctly, also when im using appium desktop its working properly this part of my script Info AppiumDoctor Bye! Run appium-doctor again when all manual fixes have been applied!Įxport PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"Įxport MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"Įxport INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"Įxport JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"Įxport PATH=$PATH:$ANDROID_HOME/tools/binĮxport PATH=$PATH:$ANDROID_HOME/platform-tools WARN AppiumDoctor ➜ bundletool.jar is used to handle Android App Bundle. Please install it with npm i -g mjpeg-consumer. WARN AppiumDoctor ➜ mjpeg-consumer module is required to use MJPEG-over-HTTP features. WARN AppiumDoctor ➜ ffmpeg is needed to record screen features. WARN AppiumDoctor ➜ Why opencv4nodejs is needed and how to install it: Info AppiumDoctor The configuration can install optionally. Info AppiumDoctor # Optional Manual Fixes #

Info AppiumDoctor # Diagnostic for optional dependencies completed, 4 fixes possible. WARN AppiumDoctor bundletool.jar cannot be found WARN AppiumDoctor mjpeg-consumer cannot be found. WARN AppiumDoctor opencv4nodejs cannot be found. Info AppiumDoctor Python required by node-gyp (used by heapdump) is installed at: /usr/bin/python. Info AppiumDoctor # Diagnostic for optional dependencies starting # Info AppiumDoctor # Diagnostic for necessary dependencies completed, no fix needed. Info AppiumDoctor Bin directory of $JAVA_HOME is set

Info AppiumDoctor emulator exists at: /home/amrka/Android/Sdk/tools/emulator Info AppiumDoctor android exists at: /home/amrka/Android/Sdk/tools/android Info AppiumDoctor adb exists at: /home/amrka/Android/Sdk/platform-tools/adb Info AppiumDoctor JAVA_HOME is set to: /usr/lib/jvm/java-8-openjdk-amd64 Info AppiumDoctor ANDROID_HOME is set to: /home/amrka/Android/Sdk Info AppiumDoctor The Node.js binary was found at: /home/linuxbrew/.linuxbrew/bin/node Info AppiumDoctor # Diagnostic for necessary dependencies starting # However, I’m using the same script with windows and IOS and its working properly.Īll path variables are set up correctly and tested i dont know why this issue is happening with ubunto.

Please set the ANDROID_HOME environment variable with the Android SDK root directory path.” I’m trying to run appium programmatically within my java codes and I’m getting this error
