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

前端 未结 22 1019
闹比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:47

    1. Go to system properties.
    2. Click change setting.
    3. Click advance tab.
    4. Click Environment Variables button.
    5. In system variables area click new button.
    6. Set ANDROID_HOME in the Variable name field.
    7. Set C:\Program Files (x86)\Android\android-sdk in the Variable value field.
    8. Click ok button.
    9. Double click Path variable in the list.
    10. Click new button.
    11. Past C:\Program Files (x86)\Android\android-sdk\platform-tools in the filed.
    12. Click new button again.
    13. Past C:\Program Files (x86)\Android\android-sdk\tools in the field.
    14. Press enter 3 times.

    That's all you need to do.

提交回复
热议问题