Ionic android app works in viewer but fails on build


Hi guys, not sure if this was discussed before, but could not see anything related to it.

I’ve build a very small prototype app. It works fine via the ionic viewer without any issues. It also builds find without any issues. But the moment I try to package the android version it fails.

The package process runs successful as well, but at the end it fails.

47 actionable tasks: 47 executed
Built the following apk(s):
$ cordova build android success
Running after script…
$ run "clean-up"
Running Stage clean-up for Job: 5306695
ERROR: Job failed: exit status 1

Any idea what could cause this and how to fix it? There’s no log or any indication of what can be the problem.

Ionic info output:

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2


Node : v8.9.4
npm  : 5.6.0
OS   : Linux 4.13

Environment Variables:

ANDROID_HOME : not set


backend : pro


No worries, found the solution