while running build command ionic cordova build android --verbose
I am getting an error for Cordova
due to I am not able to build apk of android
No scripts found for hook "after_compile".
No scripts found for hook "after_build".
[ERROR] An error occurred while running subprocess cordova.
cordova build android --verbose exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:cli-framework:utils:process onBeforeExit handler: process.exit received +0ms
ionic:cli-framework:utils:process onBeforeExit handler: running 2 queued functions +1ms
ionic:cli-framework:utils:process error while killing process tree for 25976: { Error: Command failed: taskkill /pid 25976 /T /F
ionic:cli-framework:utils:process ERROR: The process "25976" not found.
ionic:cli-framework:utils:process
ionic:cli-framework:utils:process at ChildProcess.exithandler (child_process.js:275:12)
ionic:cli-framework:utils:process at emitTwo (events.js:126:13)
ionic:cli-framework:utils:process at ChildProcess.emit (events.js:214:7)
ionic:cli-framework:utils:process at maybeClose (internal/child_process.js:925:16)
ionic:cli-framework:utils:process at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
ionic:cli-framework:utils:process killed: false,
ionic:cli-framework:utils:process code: 128,
ionic:cli-framework:utils:process signal: null,
ionic:cli-framework:utils:process cmd: 'taskkill /pid 25976 /T /F' } +200ms
ionic:cli-framework:utils:process Error from function 0 in exit queue: { Error: Command failed: taskkill /pid 25976 /T /F
ionic:cli-framework:utils:process ERROR: The process "25976" not found.
ionic:cli-framework:utils:process
ionic:cli-framework:utils:process at ChildProcess.exithandler (child_process.js:275:12)
ionic:cli-framework:utils:process at emitTwo (events.js:126:13)
ionic:cli-framework:utils:process at ChildProcess.emit (events.js:214:7)
ionic:cli-framework:utils:process at maybeClose (internal/child_process.js:925:16)
ionic:cli-framework:utils:process at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
ionic:cli-framework:utils:process killed: false,
ionic:cli-framework:utils:process code: 128,
ionic:cli-framework:utils:process signal: null,
ionic:cli-framework:utils:process cmd: 'taskkill /pid 25976 /T /F' } +9ms
ionic:cli-framework:utils:process error while killing process tree for 26156: { Error: Command failed: taskkill /pid 26156 /T /F
ionic:cli-framework:utils:process ERROR: The process "26156" not found.
ionic:cli-framework:utils:process
ionic:cli-framework:utils:process at ChildProcess.exithandler (child_process.js:275:12)
ionic:cli-framework:utils:process at emitTwo (events.js:126:13)
ionic:cli-framework:utils:process at ChildProcess.emit (events.js:214:7)
ionic:cli-framework:utils:process at maybeClose (internal/child_process.js:925:16)
ionic:cli-framework:utils:process at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
ionic:cli-framework:utils:process killed: false,
ionic:cli-framework:utils:process code: 128,
ionic:cli-framework:utils:process signal: null,
ionic:cli-framework:utils:process cmd: 'taskkill /pid 26156 /T /F' } +165ms
ionic:cli-framework:utils:process Error from function 1 in exit queue: { Error: Command failed: taskkill /pid 26156 /T /F
ionic:cli-framework:utils:process ERROR: The process "26156" not found.
ionic:cli-framework:utils:process
ionic:cli-framework:utils:process at ChildProcess.exithandler (child_process.js:275:12)
ionic:cli-framework:utils:process at emitTwo (events.js:126:13)
ionic:cli-framework:utils:process at ChildProcess.emit (events.js:214:7)
ionic:cli-framework:utils:process at maybeClose (internal/child_process.js:925:16)
ionic:cli-framework:utils:process at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
ionic:cli-framework:utils:process killed: false,
ionic:cli-framework:utils:process code: 128,
ionic:cli-framework:utils:process signal: null,
ionic:cli-framework:utils:process cmd: 'taskkill /pid 26156 /T /F' } +5ms
ionic:cli-framework:utils:process onBeforeExit handler: exiting (exit code 1) +6ms
Details
Ionic:
ionic (Ionic CLI) : 4.1.2 (C:\Users\Radamatic4\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic1 1.2.4
@ionic/v1-toolkit : 1.0.8
Cordova:
cordova (Cordova CLI) : 7.1.0
Cordova Platforms : android 6.3.0
Cordova Plugins : no whitelisted plugins (18 plugins total)
System:
Android SDK Tools : 26.1.1 (C:\Program Files (x86)\Android\android-sdk)
NodeJS : v8.9.1 (C:\Program Files (x86)\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10