when i run ionic cordova build android --prod --release
i got this error
BUILD FAILED in 6s
at ChildProcess.whenDone (C:…\Desktop\project\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
i have no idea what shauld i do i delete node modules and run npm install but the issue not fixed i try ionic cordova platform rm android and then add android but still have this issue
this is my ionic info
Ionic:
ionic (Ionic CLI) : 4.0.5 (C:\Users\user\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
System:
NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
npm : 6.4.0
OS : Windows 10
Environment:
ANDROID_HOME : not set
and also i dont know how this ionic project became v4 from v3