【发布时间】:2018-04-04 22:23:04
【问题描述】:
尝试在我的 ionic 应用中构建 android apk 时出现此错误。任何帮助将不胜感激:)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> 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 3m 11s
at ChildProcess.whenDone (C:\Users\KING WOODE\Documents\Mobile Apps\test\myApp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at ChildProcess.emit (events.js:160:13)
at maybeClose (internal/child_process.js:943:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
(node:7044) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7044) [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.
【问题讨论】:
-
您是否阅读了错误信息中的文字?它看起来非常清晰和简洁。从最后一行开始向上阅读。找出问题描述的时间不会超过 30 秒。这些消息不仅仅是为了占用屏幕上的空间。
-
我是新手。这就是为什么我寻求帮助:)。如果您提供解决方案,将不胜感激。谢谢
-
该错误信息的最后两句给出了解决方案。我们没有你的代码。你做。 读那两个句子中的单词。
标签: ionic-framework ionic2 ionic3 ionic-native