cordova - ionic 3 : Execution failed for task ':app:processDebugResources'

标签 cordova ionic-framework ionic3

任务“:app:processDebugResources”执行失败。

执行“ionic cordova build android”时出现此错误。寻找了很长时间但没有运气。有人可以帮忙吗?

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 18s
(node:9516) [DEP0018] DeprecationWarning: Unhandled promise rejections are 
deprecated. In the future, promise rejections that are not handled will 
terminate the Node.js process with a non-zero exit code.`

最佳答案

我知道这是一个很晚的答案,以防有人在 2019 年仍然面临这个问题。

这是由于gradle导致的,添加这个gradle支持插件应该就可以了:

cordova plugin add cordova-android-support-gradle-release

关于cordova - ionic 3 : Execution failed for task ':app:processDebugResources' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48725618/

相关文章:

android - 使用 phonegap 启用 GPS

javascript - 无法在 ionic 中隐藏启动屏幕

ionic-framework - 检测 Ionic App 中的方向变化

javascript - 如何在ionic 5中添加和使用非原生cordova插件

cordova - Ionic cordova - 二维码生成示例

cordova - Ionic 框架 android 项目(使用 intellij)在某些设备/模拟器上启动,但在其他设备/模拟器上启动

ios - cordova.file.dataDirectory 未定义

angular - 应用程序主页 View 之前出现的白页

firebase - AngularFireStorageModule 未找到

ios - 警告 : Ambiguous Content: The app icon set "AppIcon" has an unassigned child (editor->xcode 10. 0)