Error: ANDROID_HOME is not set and “android” command not in your PATH. You must fulfill at least one of these conditions.

前端 未结 22 835
闹比i
闹比i 2020-11-22 16:16

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. Yo

22条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 16:25

    Using Android Studio on Windows the system variables settings have changed a little.

    You still have to add a system variable ANDROID_HOME, but pointing to the directory containing the android SDK usually installed in C:\Users\YOUR_USERNAME\AppData\Local\Android\android-studio\sdk.

    You also need to add the following to the Path system variable:

    ;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;

    Taken from: https://github.com/simnova/webdevdocs/wiki/Installing-PhoneGap-and-Android-Studio-on-Windows

    SDK Path also be in C:\Users\USER\AppData\Local\Android\sdk

提交回复
热议问题