Error: Command failed: platform-tools/adb -s DEVICEID shell getprop

I’m using Ionic 4 and Cordova 9 and I would like to run the app on my device.
I got an error when using the run command:

Command

ionic cordova run android --device

Error (DEVICEID - My Device ID)

Error: Command failed: P:\Simplifiedpath\platform-tools/adb -s DEVICEID shell getprop

When using –verbose, I get those details:

ionic:lib:shell Error in subprocess stdout pipe: Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd (_stream_writable.js:248:12) at Object.Writable.write (_stream_writable.js:296:5) at Readable.write (C:\Simplifiedpath\npm\node_modules\ionic\node_modules\stream-combiner2\node_modules\readable-stream\lib\_stream_readable.js:85

What’s the point about this error ?

same error, on any device and emulator, installing apk manually works fine

i post the solution here

https://stackoverflow.com/questions/56477849/error-command-failed-platform-tools-adb-s-deviceid-shell-getprop/56496094#56496094

1 Like