cordova platform add android - Not working on Mac Os

前端 未结 3 739
情歌与酒
情歌与酒 2020-12-20 01:49

I\'m new to cordova mobile app development. I have install Node and then install cordova. i have done those steps to create a cordova android app.

  1. cordova crea
3条回答
  •  醉梦人生
    2020-12-20 02:23

    The problem is PATH wrongly defined on .bash_profile.

    What i have done for this.

    1. Change the path on bash profile open ~/.bash_profile. Then the bash profile open in a text editor.
    2. Add the correct path to android SDK. If we have android studio then the path is /Application/Android Studio.app/sdk/ so we need to add this path to .bash_profile. export PATH=${PATH}:/Applications/Android\ Studio.app/sdk/tools
    3. Then close all terminal and open again and code... :)

    You can check that is working or not via typing android on terminal.

提交回复
热议问题