Unable to Build android

Whenever i try building an ionic app i keep getting the above error. and i have my android tools and my build tools installed

I am running on

LINUX OS
Ionic 3.2.0
Cordova 8.0.0

Any help will be appreciated.

If you run your app into the device with cordova run android it works?