简体   繁体   中英

Ionic Error: An error occurred while running subprocess cordova

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

在此输入图像描述

Build is successful but an error occurred while running subprocess cordova.

If i run the ionic app for browser, then it's okay. No error happens.

config.xml:

<engine name="android" spec="7.1.4" />

package.json:

  "dependencies": {
    "@angular/compiler": "^5.2.11",
    "@angular/compiler-cli": "^7.2.8",
    "@angular/core": "^5.2.11",
    "@ionic-native/core": "^4.7.0",
    "cordova-android": "7.1.4"
}

I tried removing the platform folder and adding it again but the same error came.

Can anyone point me out the problem?

My problem was that the device was not connected and i was trying to run for android. When i connected one android device, it ran fine. Silly mistake though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM