首页 > 解决方案 > IONIC build properties.gradle 不存在时出现错误

问题描述

  1. 我正在尝试创建离子构建,但出现错误,这是我的步骤。
  2. 离子科尔多瓦平台删除android
  3. 离子科尔多瓦平台添加android
  4. 离子科尔多瓦构建android

当我运行最后一个命令然后得到以下错误。

FAILURE: Build failed with an exception.

BUILD FAILED in 1s [ERROR] 运行子进程cordova 时出错。

    cordova build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more
    information.

标签: cordovaionic-frameworkgradleionic3build.gradle

解决方案


我遇到了类似的问题,运行 ionic capacitor run android 我得到的命令 androidmanifest.xml 不存在。

通过运行命令解决了 ionic capacitor update


推荐阅读