I am trying to run my ionic app on an android device (Xiaomi Pocophone) by running the following command:
ionic cordova run android
However, I get the follow
I don't know if is a general solution for this problem, but I solved this cleaning up my phone's storage/memory.
Try :
ionic cordova platform rm android
ionic cordova platform add android
and ionic cordova run android --device
It's work for me !
I had the same issue. I allowed "Install via USB" in the developer options in my phone which results success
I know it's too late but it might help people in the future. This error is most probably cause by no storage / memory full in phone you are trying to build your apk on. So make some space and try building again.
Check this git issue for the details
I run the command with --verbose and realized its either a problem with not enough storage on the phone or a restriction from the device itself so if you don't have enough space on the phone make sure to make a space on your storage