Error build android in mac

Install android studio, the sdk and everything accordingly. But by doing “ionic build android” throws me the following error:

ERROR building one of the platforms: Error: Project/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project

Any way to fix it? Lei out there that I had to add to the PATH variable, but that’s windows …

Do you have apache ant?

May I suggest looking into ionicbox?
https://github.com/driftyco/ionic-box

really I’m working on a windows and this thing solves my problems even with a crosswalk build

you still have path in a mac
IIRC its still export PATH

1 Like