【问题标题】:What went wrong: Execution failed for task ':app:processReleaseResources'. > Failed to execute aapt出了什么问题:任务“:app:processReleaseResources”执行失败。 > 执行 aapt 失败
【发布时间】: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


【解决方案1】:

改变

'com.android.support:support-v4:+'

'com.android.support:support-v4:"android sdk version you using"'

在 plugins 文件夹和 node_modules 文件夹中的 plugin.xml 文件中。

然后在'platform android'的project.properites中做同样的事情

【讨论】:

    猜你喜欢
    • 2023-03-15
    • 1970-01-01
    • 1970-01-01
    • 2020-02-11
    • 2021-05-15
    • 1970-01-01
    • 2023-02-16
    • 2020-12-27
    • 1970-01-01
    相关资源
    最近更新 更多