Automation Tool failed to run successfully?

Trying to package my game when after a while it said that Automation Tool failed to run successfully, and that the build was terminated? How would I fix this?