_Original issue by @lajos93 on 2019-05-30T19:06:03Z_
Ionic version:
[x] 5.0
Current behavior:
Trying to run a blank project on Android 8 with "ionic cordova run android", during deployment I get the following error:
ERR_UNSUITABLE_API_INSTALLATION: No suitable API installation found.
[ERROR] An error occurred while running subprocess native-run.
native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
It runs fine with
ionic cordova build android
Expected behavior:
To run with the command "ionic cordova run android"
Steps to reproduce:
Related code:
ionic cordova run android
Other information:
Ionic info:
insert the output from ionic info here
ERR_UNSUITABLE_API_INSTALLATION: No suitable API installation found.
[ERROR] An error occurred while running subprocess native-run.
native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
@lajos93 @dkrahn There is a friendlier message in native-run 0.2.0, which was just released. (npm i -g native-run@latest)
Basically, the tool is trying to figure out where to deploy your app, and it is resorting to using an AVD to boot up an emulator, but it doesn't have the system image it needs. You can check native-run android --sdk-info to see which packages are missing and install them with Android Studio. You can create an AVD in Android Studio as well.
This isn't really a bug, so I'm closing this, but let us know what we can improve.
I have all the packages installed and have this error:
`Error: Command failed: C:\Users\nuria\AppData\Local\AndroidSdk\platform-tools/adb -s RF8M204LVHX shell getprop
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
[ERROR] An error occurred while running subprocess native-run.
native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.`
@NurGuz23 Let's keep that issue in https://github.com/ionic-team/ionic-cli/issues/4011