错误:执行命令'ant',确保已安装ant并添加到您的路径(Android)

时间:2014-10-10 01:26:41

标签: android cordova ant

我对蚂蚁有一个大问题。

当我尝试从phpstomr运行android模拟器时,调试控制台告诉我这个消息:

/usr/local/bin/phonegap run --emulator android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...

/Users/stopal/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:126
                    throw e;
                          ^
Error: ERROR : executing command 'ant', make sure you have ant installed and added to your path.
    at /Users/stopal/.cordova/lib/android/cordova/3.5.1/bin/lib/check_reqs.js:47:27
    at ChildProcess.exithandler (child_process.js:652:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)
{ [Error: /Users/stopal/.cordova/lib/android/cordova/3.5.1/bin/create: Command failed with exit code 8] code: 8 }
   [error] /Users/stopal/.cordova/lib/android/cordova/3.5.1/bin/create: Command failed with exit code 8

我的〜/ .bash_profile

的设置
export ANT_HOME="/usr/share/ant/1.9.4"
export PATH=$PATH:$ANT_HOME/bin

有人可以帮助我吗?

0 个答案:

没有答案