Error when building a project for Android

So when i try to build a project for android i get this error :

and i also get this in the console :

And yes I do have SDK and JDK 8 installed , i really have no idea what is causing this , please help!!

go to Edit>preferences>External tools
select the path of sdk and jdk .

It seems like the android SDK path is wrong.

This is how it is for me.

is yours pointing to the tools folder in the android sdk folder?

If you download more than one sdk file, it may not build successfully.
Or you should check the sdk path that is included sdk already.