Software⏱️ 2 min read📅 2026-05-31

How to Fix: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

Set ANDROID_HOME environment variable and add Android to system PATH.

Quick Answer: Set the ANDROID_HOME environment variable to the path where your Android SDK is installed, and add the Android bin directory to your system's PATH. This will allow you to use the 'android' command in your terminal or command prompt.

To resolve the 'ANDROID_HOME is not set and "android" command not in your PATH' error, you need to ensure that Android is properly installed on your system. This can be achieved by setting the ANDROID_HOME environment variable or adding the Android SDK directory to your system's PATH.

🔍 Why This Happens

  • When you install Android on your system, it's common to have the SDK installed in a specific directory. However, this directory is not automatically added to your system's PATH.

🚀 How to Resolve This Issue

Method 1: Setting ANDROID_HOME Environment Variable

  1. Step 1: Open your system's environment variables settings. This can usually be found in the Control Panel (Windows) or System Preferences (Mac).

Method 2: Adding Android SDK to PATH

  1. Step 1: Navigate to the Android SDK directory.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'ANDROID_HOME is not set and "android" command not in your PATH' error and successfully install PhoneGap.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions