0

Appium code is always asking for setting ANDROID_HOME. I set it in windows environment variables but not sure whats the issue. Is there any way to check whether settings are working or not ?

sri
  • 25
  • 7
  • Open a command window, and type `SET ANDROID_HOME` and hit enter. – Ken White Jan 10 '20 at 00:52
  • Does this answer your question? [Error: ANDROID\_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.](https://stackoverflow.com/questions/26356359/error-android-home-is-not-set-and-android-command-not-in-your-path-you-must) – Vault23 Jan 10 '20 at 08:46

2 Answers2

0

There is a useful package appium-doctor to verify if your environment is properly setup and meets Appium requirements for each platform.

Install it:

npm install appium-doctor -g

Use it:

appium-doctor --android

It will show what exactly is missing.

dmle
  • 3,498
  • 1
  • 14
  • 22
0

Use appium-doctor and set your environment accordingly. If you are using eclipse set ANDROID_HOME in eclipse too. Right click on the class where you are running and under the run configure the environment tab with ANDROID_HOME.