Issues compiling first cocos 2d-x 3.9 project

I just created my first cocos project with new cocos 2d-x 3.9 but i get an error whenever i try to build it for android.

Here is my terminal output
http://pastebin.com/TAXX9HTS

nevermind, problem solved. I reinstalled apache ant and just reinstalled cocos and it seemed to fix everything