如何添加Android平台(科尔多瓦)在Mac [英] How to add platform android (cordova) on Mac
本文介绍了如何添加Android平台(科尔多瓦)在Mac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经按照指示进行。 phonegab文档和<一href="http://stackoverflow.com/questions/17975421/how-to-add-android-to-cordova-platform-path-error">How添加的Android科尔多瓦的平台? PATH错误?
i have follow the instructions.phonegab docs and How to add android to cordova platform? PATH error?
我的.bash_profile:
my .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 -)"
但仍然出错,而我执行科尔多瓦平台添加Android或离子平台的Android:
but still Error while i executing cordova platform add android or ionic platform 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.
任何解决方案?谢谢
Any Solutions? thank you
推荐答案
尝试运行在命令行中的Android
。如果没有找到命令,它意味着你的路径是不正确的呢。
try to run android
in command line. if command is not found, it's mean that your path isn't right yet.
这篇关于如何添加Android平台(科尔多瓦)在Mac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文