Error when trying to build android

Can anyone help with this error

BUILD FAILED
/home/ottz0/Documents/android-sdk-linux/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/ottz0/Documents/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/ottz0/Documents/android-sdk-linux/tools/ant/build.xml:698: null returned: 127

Total time: 5 seconds

/home/ottz0/testionic/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: ant with args: debug,-f,/home/ottz0/testionic/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
ERROR building one of the platforms: Error: /home/ottz0/testionic/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project

Type in ant -v into a command prompt. If it fails then you will need to define an ANT_HOME environment variable and include it in your PATH or if your on OSX or Linux then append it to your PATH variable.

I ran ant -version and returned the version to me, so i’m guessing this is running correctly?

This is fixed…see this thread

bmaupin was correct answer