How to add platform android (cordova) on Mac

后端 未结 3 956
面向向阳花
面向向阳花 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: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

提交回复
热议问题