Issue
I'm trying to install PhoneGap and I'm getting the following error:
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
Error (screenshot)
src="https://i.stack.imgur.com/4MMNK.png" alt="enter image description here" />
What do I do to ensure Android is set up correctly for use with Cordova?
Solution
For Windows:
set ANDROID_HOME=C:\ *installation location* \android-sdk
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
Taken from this installation guide.
Answered By - mach
Answer Checked By - Pedro (JavaFixing Volunteer)