ionic cordova build android
When i build android app it shows the following error. Can anyone to fix that issue. Thanks in advance!
ionic:lib Terminal info: { ci: false, shell: ‘C:\WINDOWS\system32\cmd.exe’, tty: true, windows: true } +0ms
ionic:lib CLI global options: { _: [ ‘cordova’, ‘build’, ‘android’ ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, ‘–’: } +4ms
ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
ionic:lib:project Project details: { configPath: ‘C:\Workspace\Thaen\thaen\ionic.config.json’, errors: , context: ‘app’, type: ‘angular’ } +1ms
ionic Context: { binPath: ‘C:\Users\akhil\AppData\Roaming\npm\node_modules\ionic\bin\ionic’, libPath: ‘C:\Users\akhil\AppData\Roaming\npm\node_modules\ionic’, execPath: ‘C:\Workspace\Thaen\thaen’, version: ‘5.4.16’ } +0ms
ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: ‘C:\Workspace\Thaen\thaen\config.xml’, package.json: ‘C:\Workspace\Thaen\thaen\package.json’) +0ms
ionic:lib:build build options: {
ionic:lib:build ‘–’: ,
ionic:lib:build engine: ‘cordova’,
ionic:lib:build platform: ‘android’,
ionic:lib:build project: undefined,
ionic:lib:build verbose: false,
ionic:lib:build configuration: undefined,
ionic:lib:build sourcemaps: undefined,
ionic:lib:build cordovaAssets: true,
ionic:lib:build watch: undefined,
ionic:lib:build type: ‘angular’
ionic:lib:build } +0ms
ionic:lib:telemetry Sending telemetry for command: ‘ionic cordova build’ [ ‘android’, ‘–verbose’, ‘–interactive’, ‘–color’ ] +0ms
ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
ionic:lib:build Looking for ionic:build npm script. +12ms
ng.cmd run app:ionic-cordova-build --platform=android
Error: Unknown argument: platform
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:ionic-cordova-build --platform=android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: ‘process.exit’ received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +1ms
ionic:utils-process error while killing process tree for 13868: Error: Command failed: taskkill /pid 13868 /T /F
ionic:utils-process ERROR: The process “13868” not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (node:child_process:412:12)
ionic:utils-process at ChildProcess.emit (node:events:513:28)
ionic:utils-process at maybeClose (node:internal/child_process:1091:16)
ionic:utils-process at Socket. (node:internal/child_process:449:11)
ionic:utils-process at Socket.emit (node:events:513:28)
ionic:utils-process at Pipe. (node:net:313:12) {
ionic:utils-process code: 128,
ionic:utils-process killed: false,
ionic:utils-process signal: null,
ionic:utils-process cmd: ‘taskkill /pid 13868 /T /F’
ionic:utils-process } +137ms
ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 13868 /T /F
ionic:utils-process ERROR: The process “13868” not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (node:child_process:412:12)
ionic:utils-process at ChildProcess.emit (node:events:513:28)
ionic:utils-process at maybeClose (node:internal/child_process:1091:16)
ionic:utils-process at Socket. (node:internal/child_process:449:11)
ionic:utils-process at Socket.emit (node:events:513:28)
ionic:utils-process at Pipe. (node:net:313:12) {
ionic:utils-process code: 128,
ionic:utils-process killed: false,
ionic:utils-process signal: null,
ionic:utils-process cmd: ‘taskkill /pid 13868 /T /F’
ionic:utils-process } +3ms
ionic:utils-process processExit: exiting (exit code: 1) +2ms