Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred while running subprocess native-run

I am new to IONIC. I am learning it.
I am trying to run the ionic app for android but it gives me below error.

enter image description here

Build is successful but an error occurred while running subprocess native-run.
If i run the ionic app for browser, then it's okay. No error happens

Update my IONIC version to 5.4.9
And Platform-Tools to 29.0.5

Error change:

[native-run] No hardware devices found, attempting emulator...
[native-run] Selected emulator emulator-5554
[native-run]Installing platforms\android\app\build\outputs\apk\debug\app-debug.apk...
[native-run] ERR_UNKNOWN: Non-zero exit code from adb: 1
[ERROR]An error occurred while running subprocess native-run.

enter image description here

like image 635
Unnati Patadia Avatar asked Oct 24 '25 15:10

Unnati Patadia


2 Answers

Device offline...There's no device connected to your computer or you have not enabled debugging on your device. If you are not running it on a device run the command ionic cordova run android --emulator Ensure you have an emulator in your android sdk.

like image 111
Faith Gaiciumia Avatar answered Oct 26 '25 05:10

Faith Gaiciumia


some times you may not activated the developer mode on your device.

like image 26
Damith Alahapperuma Avatar answered Oct 26 '25 06:10

Damith Alahapperuma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!