I'm new to Ionic and trying to install it using this tutorial.
Now everything works, I'm able to create a project and add a platform but when I try to run the command "ionic build android" I get this error:

I ran the ant debug command but it doesn't work.
I don't have a clue on how to solve this. I tried to reinstall everything, double checked my environment variables and removed and added the android platform again, but nothing works.
I also tried some of the other solutions posted here in some related topics but it seems my error here is still a little bit different.