Daniel Dai
Daniel Dai

Reputation: 63

How do I solve Appium-desktop could not find my adb

I was trying to set a win10 Appium environment to do some Android automation test.

My adb environment var and Android devices are all set down (seen in attach screenshots).

However when I run the python or java test code, the appium server always tells me that my adb.exe and build tools folder could not be found. I spent aloooooooooot of time on finding the solution on google but nothing works.

adb devices

could not find adb.exe

could not find build-tools

sdk root

adb.exe root

Upvotes: 2

Views: 3025

Answers (2)

rajkabbur
rajkabbur

Reputation: 217

Don't forget to restart your appium server after the above changes are made.

Upvotes: 1

Wasiq Bhamla
Wasiq Bhamla

Reputation: 959

From the screenshot you attached it seems like you have updated multiple paths separated by semi colon all under ANDROID_HOME environment variable.

Set the environment variables properly for ANDROID_HOME and Path as described below,

  • ANDROID_HOME: SDK root path only
  • PATH: %ANDROID_HOME%\platform-tools
  • PATH: %ANDROID_HOME%\tools

Upvotes: 3

Related Questions