【发布时间】:2014-09-17 01:50:34
【问题描述】:
我已按照说明进行操作。phonegab docs 和 How to add android to cordova platform? PATH error?
我的 .bash_profile:
export PATH=/usr/local/bin:$PATH
export PATH=$PATH:~/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools
export PATH=${PATH}:~/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools:~/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 -)"
但在我执行cordova平台添加android或离子平台android时仍然出错:
Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path.
任何解决方案?谢谢
【问题讨论】:
-
你能用 .bash_profile 文本编辑你的帖子吗?
标签: android macos cordova osx-mavericks ionic-framework