Ionic Pro - building debug APK

When I run the build on the android for an APK, it says the following… Even when the build is successful. I never get to the stage that I can download the APK

$ cordova build android success
Running after script…
$ run "clean-up"
Running Stage clean-up for Job: 5230440
ERROR: Job failed: exit status 1

I can do a ionic cordova build android on my mac book pro without any issues.

I’ve followed the steps to remove all cordova plugins and platforms and reinstalled it.

By the way, I only have like native camera and onesignal in the app.