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

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

    Using Android Studio on Mac, run this on your terminal:

    export ANDROID_HOME=/Applications/Android\ Studio.app/sdk/
    export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platforms-tools
    

    Then, when you type

    android
    

    at your terminal, it will run something

提交回复
热议问题