cordova - IONIC build properties.gradle 不存在时出现错误
问题描述
- 我正在尝试创建离子构建,但出现错误,这是我的步骤。
- 离子科尔多瓦平台删除android
- 离子科尔多瓦平台添加android
- 离子科尔多瓦构建android
当我运行最后一个命令然后得到以下错误。
FAILURE: Build failed with an exception.
其中:脚本 'D:\Projects\corporatesolutionmobileapp\platforms\android\cordova-android -support-gradle-release\sancial-cordova-android-support-gradle-release.gradle' 行:11
出了什么问题:评估脚本时出现问题。
无法读取脚本“D:\Projects\corporatesolutionmobileapp\platforms\androi d\app\cordova-android-support-gradle-release\properties.gradle”,因为它不存在。
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
在https://help.gradle.org获得更多帮助
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.
解决方案
我遇到了类似的问题,运行
ionic capacitor run android
我得到的命令 androidmanifest.xml 不存在。
通过运行命令解决了
ionic capacitor update
推荐阅读
- angular - HttpResponse 活动中的 Cors 问题
- reactjs - 用承诺值对 for 循环做出反应
- google-apps-script - 使用谷歌应用程序脚本将数据从 sheet1 中的单元格复制到 sheet2 中的不同非连续列
- c++ - 如何调用集合上的函数
> C++ 中的容器? - python - 如何从 Excel 图表图例中删除系列 - Python Openpyxl
- java - 为什么将数组长度的计算移出递归函数会增加运行时间?
- bigdata - 从 google colab 访问本地计算机中的数据
- runtime - 如何更好地分析复杂嵌套循环的运行时间?
- javascript - JS、CSS 使用链接添加/删除类以打开/关闭 Div
- oracle - oracle如何执行多个查询