Android build fails after osx restore


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

                    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

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…