PhoneGap的Andr​​oid的苹果 - ANT问题 [英] Phonegap Android Mac - ANT Issue

查看:138
本文介绍了PhoneGap的Andr​​oid的苹果 - ANT问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Mac安装PhoneGap的,我已经安装了与平台添加的iossuccesfuly,但有一些问题平台添加机器人

I want to install phonegap in my Mac, I've already installed and "platform add ios" succesfuly but have some problems with "platform add android"

它说:错误:命令Android的失败,请确保您有最新的Andr​​oid SDK安装,和机器人

It says "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."

该SDK是存在的(并且通过月食做工精细)

The SDK is there (and working fine through eclipse)

我在其他职位也就是找到了路径问题,所以我创作了的.bash_profile用正确的路径为工具和平台工具,然后说,couln't发现蚁族

I found in other posts that is a "PATH" issue so I created ".bash_profile" with the correct PATH to "tools" and "platform-tools" and then it said that couln't find "ant"

我试图啤酒(就像我在另一篇文章读)来安装它,但不能执行的Brew(它说找不到命令)

I tried to install it by Brew (like I read in another post) but can't execute Brew (it says command not found)

我试图安装MacPort但是当我在写终端端口它说:找不到命令!

I tried to install MacPort but when i write in terminal "port" it says "command not found"!

我尝试下载蚂蚁箱和复制到USR /共享/蚂蚁文件夹,然后添加到PATH ......但现在我回到命令android失败。请确保您有......

I tried downloading the Ant Bins and copying into the usr/shared/Ant folder and then adding to the PATH... but now I got back to "The command android failed. Make sure you have..."

我很困惑......请大家帮忙!

I'm so confused... please help!

我的回声$ PATH 现在的问题是: <$c$c>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/lioncio/Desktop/adt-bundle-mac-x86_64-20140702/sdk/platform-tools:/Users/lioncio/Desktop/adt-bundle-mac-x86_64-20140702/sdk/tools:/Users/lioncio/Desktop/adt-bundle-mac-x86_64-20140702/sdk/platform-tools:/Users/lioncio/Desktop/adt-bundle-mac-x86_64-20140702/sdk/tools:/usr/share/ant

谢谢!

推荐答案

我已经找到了一种解决方案(不是一个真正的好的解决方案,但...)

I've found a kind of solution (not really a good solution but...)

问题是,当我安装的Brew互联网连接断开和BREW站在半安装。所以......

The problem was that when I installed Brew the internet connection disconnected and brew stood half installed. So...

我试图安装的MacPorts(我说的),似乎在那之后的Brew卸载因为这个(我不知道为什么),然后我可以重新安装...

I tried to install MacPorts (as I said) and it seems that after that Brew uninstalled because of this (I don't know why) and then I could install it again...

希望它可以帮助别人

这篇关于PhoneGap的Andr​​oid的苹果 - ANT问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆