Android build fails after osx restore

Hi,

I know this is not 100% ionic issue, but I restored osx from backup and now for some reason (only) android build fails, ios works fine. I updated android SDK, but it has no changes.

I receive this error

/Users/User/apps/myapp/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error: Failed to run "ant -version", make sure you have ant installed and added to your PATH.
    at /Users/User/apps/myapp/platforms/android/cordova/lib/check_reqs.js:43:27
    at ChildProcess.exithandler (child_process.js:651:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Socket.<anonymous> (child_process.js:966:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

Thank you

As I found the solution, before posting this, I decided to post it anyway so people can solve this, as I can see it pretty common.

I followed this http://stackoverflow.com/questions/19495610/error-executing-command-ant-on-mac-os-x-10-9-mavericks-when-building-for-andro

But, when trying to install Ant with brew I received

Error: ant-1.9.3 already installed

So I had to unlink it

brew unlink ant

An run install again

brew install ant

That fixed the issue, I guess some mix with symlinks ocurred…

Thanks