【问题标题】:Ionic Error: An error occurred while running subprocess cordova离子错误:运行子进程cordova时发生错误
【发布时间】:2019-05-15 05:57:23
【问题描述】:

我正在尝试运行适用于 android 的 ionic 应用程序,但它给了我以下错误。

构建成功,但运行子进程cordova时出错。

如果我为浏览器运行 ionic 应用程序,那就没问题了。没有错误发生。

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"
}

我尝试删除平台文件夹并再次添加它,但出现了同样的错误。

谁能指出问题所在?

【问题讨论】:

    标签: android cordova ionic3


    【解决方案1】:

    我的问题是设备没有连接,我正在尝试为 android 运行。当我连接一台安卓设备时,它运行良好。不过是个愚蠢的错误。

    【讨论】:

      猜你喜欢
      • 2019-03-19
      • 1970-01-01
      • 2019-08-27
      • 1970-01-01
      • 1970-01-01
      • 2021-05-24
      • 2019-05-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多