ionic cordova run android An error occured while running subprocess native-run

前端 未结 5 827
-上瘾入骨i
-上瘾入骨i 2021-01-20 11:55

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

相关标签:
5条回答
  • 2021-01-20 12:02

    I don't know if is a general solution for this problem, but I solved this cleaning up my phone's storage/memory.

    0 讨论(0)
  • 2021-01-20 12:03

    Try :
    ionic cordova platform rm android
    ionic cordova platform add android
    and ionic cordova run android --device

    It's work for me !

    0 讨论(0)
  • 2021-01-20 12:05

    I had the same issue. I allowed "Install via USB" in the developer options in my phone which results success

    0 讨论(0)
  • 2021-01-20 12:08

    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

    0 讨论(0)
  • 2021-01-20 12:17

    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

    0 讨论(0)
提交回复
热议问题