How to add platform android (cordova) on Mac

后端 未结 3 957
面向向阳花
面向向阳花 2021-01-23 14:21

i have follow the instructions.phonegab docs and How to add android to cordova platform? PATH error? \"export

相关标签:
3条回答
  • 2021-01-23 14:23

    Try to run android in command line. if the command is not found, it's mean that the path of android sdk that registered is still wrong

    0 讨论(0)
  • 2021-01-23 14:23

    AndroidDev PATH

    export PATH=${PATH}:~/android-sdk-linux/tools

    export PATH=${PATH}:~/android-sdk-linux/platform-tools

    You have to manually reload your setting like for Ubuntu I am using this command "$ source ~/.bashrc"

    0 讨论(0)
  • 2021-01-23 14:46

    Thank you All for your clue of solutions. I try add $HOME because /Development directory in /Home directory and i followed code RVM in my .bash_profile:

    `[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
    eval "$(rbenv init -)"`
    

    The solutions in How to add android to cordova platform? PATH error? i followed symbol ~ for initialize /Development directory in /Home directory, but it's not working. and I try follow code RVM in my .bash_profile use $HOME.

    this is my .bash_profile:

     export PATH=${PATH}:$HOME/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools:$HOME/Development/adt-bundle-mac-x86_64-20140321/sdk/tools
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
    eval "$(rbenv init -)"
    

    and then run command source ~/.bash_profile. Solved

    0 讨论(0)
提交回复
热议问题